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

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

Issue 1192363009: Fix deletion of directory in test (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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_write_only_test.dart
diff --git a/tests/standalone/io/file_write_only_test.dart b/tests/standalone/io/file_write_only_test.dart
index a26fa7e3dc39b2217496ca2bcd76e1a21453c25e..6b00ac4b960847bf6e29dd54873e35367979966d 100644
--- a/tests/standalone/io/file_write_only_test.dart
+++ b/tests/standalone/io/file_write_only_test.dart
@@ -62,6 +62,7 @@ void writeSync(Directory dir) {
raf.writeStringSync('Hello');
raf.setPositionSync(0);
Expect.throws(() => raf.readByteSync());
+ raf.close();
}
Future openWrite(Directory dir) async {
@@ -77,8 +78,8 @@ Future openWrite(Directory dir) async {
main() async {
asyncStart();
- await withTempDir('file_write_only_test', write);
- withTempDirSync('file_write_only_test', writeSync);
- await withTempDir('file_write_only_test', openWrite);
+ await withTempDir('file_write_only_test_1', write);
+ withTempDirSync('file_write_only_test_2', writeSync);
+ await withTempDir('file_write_only_test_3', openWrite);
asyncEnd();
}
« 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