Index: tests/standalone/io/stdin_sync_test.dart |
diff --git a/tests/standalone/io/stdin_sync_test.dart b/tests/standalone/io/stdin_sync_test.dart |
index e9e5610a607e58fe61ed7ecd98459721826862e6..2710b0a83c9a4ec0fc4343f075f395f43c21d17e 100644 |
--- a/tests/standalone/io/stdin_sync_test.dart |
+++ b/tests/standalone/io/stdin_sync_test.dart |
@@ -17,7 +17,7 @@ void testReadByte() { |
[script]..addAll( |
expected.map(JSON.encode))).then((process) { |
process.stdin.write(line); |
- process.stdin.close(); |
+ process.stdin.flush().then((_) => process.stdin.close()); |
process.stderr |
.transform(UTF8.decoder) |
.transform(new LineSplitter()) |