Index: tests/isolate/src/Isolate3NegativeTest.dart |
diff --git a/tests/isolate/src/Isolate3NegativeTest.dart b/tests/isolate/src/Isolate3NegativeTest.dart |
index 2ed543b52697d4abc5f7b6963069b29fa998ed05..c123d0e1d0370f7c17ad408be29de8dba29e5377 100644 |
--- a/tests/isolate/src/Isolate3NegativeTest.dart |
+++ b/tests/isolate/src/Isolate3NegativeTest.dart |
@@ -29,11 +29,11 @@ class Isolate3NegativeTest extends Isolate { |
} |
void test(TestExpectation expect) { |
- void msg_callback(var message, SendPort replyTo) { |
+ void msg_callback(var message) { |
// This test is a negative test and should not complete successfully. |
} |
void spawn_callback(SendPort port) { |
- port.call("foo").receive(expect.runs2(msg_callback)); |
+ port.call("foo").then(expect.runs1(msg_callback)); |
} |
expect.completes(new Isolate3NegativeTest().spawn()).then(spawn_callback); |
} |