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