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

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

Issue 15360003: Try and fix test for windows, by delaying dir delete to file-stream's onDone is called. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_input_stream_test.dart
diff --git a/tests/standalone/io/file_input_stream_test.dart b/tests/standalone/io/file_input_stream_test.dart
index 5a4adf1911de4a73c25c1a0616c384a07e53e67f..d57c0147b10ce2e66bfae4b20a30adfd99208232 100644
--- a/tests/standalone/io/file_input_stream_test.dart
+++ b/tests/standalone/io/file_input_stream_test.dart
@@ -212,9 +212,10 @@ void testInputStreamBadOffset() {
streamedBytes += d.length;
},
onDone: () {
+ temp.delete(recursive: true);
},
onError: (e) {
- temp.delete(recursive: true).then((_) => keepAlive.close());
+ keepAlive.close();
});
}
test(-1, null);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698