Commit fb8179bf authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

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.
parent 2eecb8be
......@@ -164,7 +164,6 @@ class FlutterPlatform extends PlatformPlugin {
harnessToTest.cancel();
testToHarness.cancel();
assert(!controllerSinkClosed);
switch (testResult) {
case _TestResult.crashed:
int exitCode = await process.exitCode;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment