Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
d0cbbd53
Unverified
Commit
d0cbbd53
authored
Mar 07, 2018
by
Todd Volkert
Committed by
GitHub
Mar 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fail if precompiled test entry point is specified, but more than one test suite is run (#15208)
parent
602e6d74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
flutter_platform.dart
packages/flutter_tools/lib/src/test/flutter_platform.dart
+6
-3
No files found.
packages/flutter_tools/lib/src/test/flutter_platform.dart
View file @
d0cbbd53
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment