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

Unified Diff: tests/isolate/src/TestFramework.dart

Issue 9652001: SendPort + ReceivePort changes: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « tests/isolate/src/StaticStateTest.dart ('k') | tests/language/src/TypedMessageTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
}
« no previous file with comments | « tests/isolate/src/StaticStateTest.dart ('k') | tests/language/src/TypedMessageTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698