Index: tests/isolate/src/SpawnTest.dart |
diff --git a/tests/isolate/src/SpawnTest.dart b/tests/isolate/src/SpawnTest.dart |
index 6d8b56cc43891086224938da22e7409dbd3bdbbd..6194312a0b8eeb20551805c88afd5cb0ba719a68 100644 |
--- a/tests/isolate/src/SpawnTest.dart |
+++ b/tests/isolate/src/SpawnTest.dart |
@@ -9,7 +9,7 @@ |
void test(TestExpectation expect) { |
SpawnedIsolate isolate = new SpawnedIsolate(); |
expect.completes(isolate.spawn()).then((SendPort port) { |
- port.call(42).receive(expect.runs2((message, replyTo) { |
+ port.call(42).then(expect.runs1((message) { |
Expect.equals(42, message); |
expect.succeeded(); |
})); |