Index: tests/standalone/io/process_stderr_test.dart |
diff --git a/tests/standalone/io/process_stderr_test.dart b/tests/standalone/io/process_stderr_test.dart |
index 6c821d9a2de04826cef09f1171767ef128d717f9..981b39aa0c13efd2136ba5848b7b72796bfe66a5 100644 |
--- a/tests/standalone/io/process_stderr_test.dart |
+++ b/tests/standalone/io/process_stderr_test.dart |
@@ -48,7 +48,7 @@ void test(Future<Process> future, int expectedExitCode) { |
process.stdout.listen((_) {}); |
process.stdin.add(data); |
- process.stdin.close(); |
+ process.stdin.flush().then((_) => process.stdin.close()); |
process.stderr.listen(readData); |
}); |
} |