cancel open subscription (#5824)
fixes https://github.com/flutter/flutter/issues/5788
This commit is contained in:
@@ -78,6 +78,7 @@ Future<int> runCommandAndStreamOutput(List<String> cmd, {
|
||||
// Wait for stdout to be fully processed
|
||||
// because process.exitCode may complete first causing flaky tests.
|
||||
await subscription.asFuture();
|
||||
subscription.cancel();
|
||||
|
||||
return await process.exitCode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user