Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: tests/standalone/io/process_stderr_test.dart

Issue 2687963003: [dart:io] flush() stdin before close()ing (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/io/process_detached_test.dart ('k') | tests/standalone/io/process_stdout_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
});
}
« no previous file with comments | « tests/standalone/io/process_detached_test.dart ('k') | tests/standalone/io/process_stdout_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698