Index: tests/isolate/spawn_uri_nested_child1_vm_isolate.dart |
diff --git a/tests/isolate/spawn_uri_nested_child1_vm_isolate.dart b/tests/isolate/spawn_uri_nested_child1_vm_isolate.dart |
index 26c661703035ad431c0fefaccead7f69c1ea3cf3..189688f4f8df229a8462ba7c266645fab505dbeb 100644 |
--- a/tests/isolate/spawn_uri_nested_child1_vm_isolate.dart |
+++ b/tests/isolate/spawn_uri_nested_child1_vm_isolate.dart |
@@ -10,15 +10,17 @@ import 'dart:isolate'; |
main() { |
ReceivePort port2 = new ReceivePort(); |
- port2.receive((msg, SendPort replyTo) { |
+ port2.listen((msg) { |
+ if (msg != "re: hi") throw "Bad response: $msg"; |
port2.close(); |
}); |
SendPort s = spawnUri('spawn_uri_nested_child2_vm_isolate.dart'); |
- s.send('hi', port2.toSendPort()); |
+ s.send(['hi', port2.sendPort]); |
- port.receive((message, SendPort replyTo) { |
- var result = message; |
+ port.listen((args) { |
+ var result = args[0]; |
+ var replyTo = args[1]; |
replyTo.send(result); |
}); |
} |