Index: tests/isolate/src/IsolateNegativeTest.dart |
diff --git a/tests/isolate/src/IsolateNegativeTest.dart b/tests/isolate/src/IsolateNegativeTest.dart |
index 195e94118f6cf517c18ed141d13a35e057b6646f..090ba916e726a812d4d01deaf7197495bb3c4123 100644 |
--- a/tests/isolate/src/IsolateNegativeTest.dart |
+++ b/tests/isolate/src/IsolateNegativeTest.dart |
@@ -20,7 +20,7 @@ class IsolateNegativeTest extends Isolate { |
void test(TestExpectation expect) { |
expect.completes(new IsolateNegativeTest().spawn()).then((SendPort port) { |
- port.call("foo").receive(expect.runs2((message, replyTo) { |
+ port.call("foo").then(expect.runs1((message) { |
Expect.equals(true, "Expected fail"); // <=-------- Should fail here. |
expect.succeeded(); |
})); |