Index: tests/isolate/src/ConstructorTest.dart |
diff --git a/tests/isolate/src/ConstructorTest.dart b/tests/isolate/src/ConstructorTest.dart |
index 09fed585ca0e5f34913c14a325ff97375c644b0d..c467e427fc297c6a20fd9a20083eb40eba3acb5a 100644 |
--- a/tests/isolate/src/ConstructorTest.dart |
+++ b/tests/isolate/src/ConstructorTest.dart |
@@ -21,8 +21,7 @@ class ConstructorTest extends Isolate { |
void test(TestExpectation expect) { |
ConstructorTest test = new ConstructorTest(); |
expect.completes(test.spawn()).then((SendPort port) { |
- ReceivePort reply = port.call("ignored"); |
- reply.receive(expect.runs2((message, replyPort) { |
+ port.call("ignored").then(expect.runs1((message) { |
Expect.equals(499, message); |
expect.succeeded(); |
})); |