Index: tests/isolate/src/StaticStateTest.dart |
diff --git a/tests/isolate/src/StaticStateTest.dart b/tests/isolate/src/StaticStateTest.dart |
index 606d5cb183c2c74b11947038522c9aec903ef5e2..c993df938d3dc9cb28de58ad4d08cbe6e4ef7104 100644 |
--- a/tests/isolate/src/StaticStateTest.dart |
+++ b/tests/isolate/src/StaticStateTest.dart |
@@ -32,12 +32,12 @@ void test(TestExpectation expect) { |
Expect.equals("foo", TestIsolate.state); |
expect.completes(new TestIsolate().spawn()).then((SendPort remote) { |
- remote.call("bar").receive(expect.runs2((reply, replyTo) { |
+ remote.call("bar").then(expect.runs1((reply) { |
Expect.equals("foo", TestIsolate.state); |
Expect.equals(null, reply); |
TestIsolate.state = "baz"; |
- remote.call("exit").receive(expect.runs2((reply, replyTo) { |
+ remote.call("exit").then(expect.runs1((reply) { |
Expect.equals("baz", TestIsolate.state); |
Expect.equals("bar", reply); |
expect.succeeded(); |