Index: tests/isolate/src/TestFramework.dart |
diff --git a/tests/isolate/src/TestFramework.dart b/tests/isolate/src/TestFramework.dart |
index 7879776cd76a33b6af863bc3ad5c1b32520eb268..342d54e5e04e2369a4396e84b9353f0963be6213 100644 |
--- a/tests/isolate/src/TestFramework.dart |
+++ b/tests/isolate/src/TestFramework.dart |
@@ -248,10 +248,12 @@ class AsynchronousTestCase extends TestCase { |
void addRunning(TestResult result) { |
if (running++ == 0) { |
- keepalive = new ReceivePort.singleShot(); |
- keepalive.receive((message, replyTo) { |
+ final port = new ReceivePort(); |
+ port.receive((message, replyTo) { |
+ port.close(); |
result.runner.done(result); |
}); |
+ keepalive = port; |
} |
} |