| Index: tests/isolate/src/RequestReplyTest.dart
|
| diff --git a/tests/isolate/src/RequestReplyTest.dart b/tests/isolate/src/RequestReplyTest.dart
|
| index 30a63d75aaf3599bdf85324c01caef73854ab488..5037f6a0f16aa317a9d7662e0de46cd990693742 100644
|
| --- a/tests/isolate/src/RequestReplyTest.dart
|
| +++ b/tests/isolate/src/RequestReplyTest.dart
|
| @@ -21,7 +21,7 @@ class TestIsolate extends Isolate {
|
|
|
| void testCall(TestExpectation expect) {
|
| expect.completes(new TestIsolate().spawn()).then((SendPort port) {
|
| - port.call(42).receive(expect.runs2((message, replyTo) {
|
| + port.call(42).then(expect.runs1((message) {
|
| Expect.equals(42 + 87, message);
|
| expect.succeeded();
|
| }));
|
| @@ -40,17 +40,6 @@ void testSend(TestExpectation expect) {
|
| });
|
| }
|
|
|
| -void testSendSingleShot(TestExpectation expect) {
|
| - expect.completes(new TestIsolate().spawn()).then((SendPort port) {
|
| - ReceivePort reply = new ReceivePort.singleShot();
|
| - port.send(99, replyTo: reply.toSendPort());
|
| - reply.receive(expect.runs2((message, replyTo) {
|
| - Expect.equals(99 + 87, message);
|
| - expect.succeeded();
|
| - }));
|
| - });
|
| -}
|
| -
|
| void main() {
|
| - runTests([testCall, testSend, testSendSingleShot]);
|
| + runTests([testCall, testSend]);
|
| }
|
|
|