Index: tests/standalone/src/io/DirectoryTest.dart |
diff --git a/tests/standalone/src/io/DirectoryTest.dart b/tests/standalone/src/io/DirectoryTest.dart |
index 83f22afdb64bbf0b486c9f28eef0ede6d9203f9c..fe332737dd49446f6133d7b40804584a54412833 100644 |
--- a/tests/standalone/src/io/DirectoryTest.dart |
+++ b/tests/standalone/src/io/DirectoryTest.dart |
@@ -448,8 +448,9 @@ testCreateTempError() { |
var location = illegalTempDirectoryLocation(); |
if (location == null) return; |
- var resultPort = new ReceivePort.singleShot(); |
+ var resultPort = new ReceivePort(); |
resultPort.receive((String message, ignored) { |
+ resultPort.close(); |
Expect.equals("error", message); |
}); |