Flush and close stdin in dart_plugin_registry_test (#100338)
This commit is contained in:
parent
d995fd6512
commit
5e6a653865
@ -193,13 +193,16 @@ class ApluginPlatformInterfaceMacOS {
|
|||||||
|
|
||||||
// Hot restart.
|
// Hot restart.
|
||||||
run.stdin.write('R');
|
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');
|
section('Wait for registry execution after hot restart');
|
||||||
await waitOrExit(registryExecutedCompleter.future);
|
await waitOrExit(registryExecutedCompleter.future);
|
||||||
|
|
||||||
run.kill();
|
run.kill();
|
||||||
|
|
||||||
|
section('Wait for stdout/stderr streams');
|
||||||
await waitForStreams();
|
await waitForStreams();
|
||||||
|
|
||||||
unawaited(stdoutSub.cancel());
|
unawaited(stdoutSub.cancel());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user