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

Unified Diff: tests/standalone/io/stdin_sync_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_stdout_test.dart ('k') | tools/testing/dart/android.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « tests/standalone/io/process_stdout_test.dart ('k') | tools/testing/dart/android.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698