Unverified Commit 5e6a6538 authored by Emmanuel Garcia's avatar Emmanuel Garcia Committed by GitHub

Flush and close stdin in dart_plugin_registry_test (#100338)

parent d995fd65
......@@ -193,13 +193,16 @@ class ApluginPlatformInterfaceMacOS {
// Hot restart.
run.stdin.write('R');
registryExecutedCompleter = Completer<void>();
await run.stdin.flush();
await run.stdin.close();
registryExecutedCompleter = Completer<void>();
section('Wait for registry execution after hot restart');
await waitOrExit(registryExecutedCompleter.future);
run.kill();
section('Wait for stdout/stderr streams');
await waitForStreams();
unawaited(stdoutSub.cancel());
......
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