mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Remove a misfiring assert in the test framework plugin (#7397)
Fixes https://github.com/flutter/flutter/issues/7351 When a test runs to completion, the test harness closes the stream side of the StreamChannel, causing the sink side to be closed as well. So by the time we receive a test result of completed/harnessBailed, the controller sink has been closed.
This commit is contained in:
parent
2eecb8be37
commit
fb8179bfed
@ -164,7 +164,6 @@ class FlutterPlatform extends PlatformPlugin {
|
||||
harnessToTest.cancel();
|
||||
testToHarness.cancel();
|
||||
|
||||
assert(!controllerSinkClosed);
|
||||
switch (testResult) {
|
||||
case _TestResult.crashed:
|
||||
int exitCode = await process.exitCode;
|
||||
|
Loading…
Reference in New Issue
Block a user