Chromium Code Reviews| 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(); |
|
eub
2012/03/09 18:33:10
I'm missing why the port vs. keepalive distinction
Siggi Cherem (dart-lang)
2012/03/10 03:10:00
It happens that keepalive is a field that gets ass
|
| + port.receive((message, replyTo) { |
| + port.close(); |
| result.runner.done(result); |
| }); |
| + keepalive = port; |
| } |
| } |