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(); |
} |