mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
Fail if precompiled test entry point is specified, but more than one test suite is run (#15208)
This commit is contained in:
parent
602e6d74b5
commit
d0cbbd5394
|
@ -159,10 +159,13 @@ class _FlutterPlatform extends PlatformPlugin {
|
|||
|
||||
@override
|
||||
StreamChannel<dynamic> loadChannel(String testPath, TestPlatform platform) {
|
||||
// Fail if there will be a port conflict.
|
||||
if (explicitObservatoryPort != null) {
|
||||
if (_testCount > 0)
|
||||
if (_testCount > 0) {
|
||||
// Fail if there will be a port conflict.
|
||||
if (explicitObservatoryPort != null)
|
||||
throwToolExit('installHook() was called with an observatory port or debugger mode enabled, but then more than one test suite was run.');
|
||||
// Fail if we're passing in a precompiled entry-point.
|
||||
if (dillFilePath != null)
|
||||
throwToolExit('installHook() was called with a precompiled test entry-point, but then more than one test suite was run.');
|
||||
}
|
||||
final int ourTestCount = _testCount;
|
||||
_testCount += 1;
|
||||
|
|
Loading…
Reference in a new issue