Index: tests/isolate/nested_spawn_test.dart |
diff --git a/tests/isolate/nested_spawn_test.dart b/tests/isolate/nested_spawn_test.dart |
index 51157f336ed7cefa00ad31669b7c05f643f16d04..0dc35a07bc86f266218a701358083b73b9182977 100644 |
--- a/tests/isolate/nested_spawn_test.dart |
+++ b/tests/isolate/nested_spawn_test.dart |
@@ -6,7 +6,8 @@ |
library NestedSpawnTest; |
import 'dart:isolate'; |
-import '../../pkg/unittest/lib/unittest.dart'; |
+import 'package:unittest/unittest.dart'; |
+import "remote_unittest_helper.dart"; |
void isolateA(message) { |
message.add("isolateA"); |
@@ -18,7 +19,8 @@ void isolateB(message) { |
message[0].send(message); |
} |
-main() { |
+void main([args, port]) { |
+ if (testRemote(main, port)) return; |
test("spawned isolates can spawn nested isolates", () { |
ReceivePort port = new ReceivePort(); |
Isolate.spawn(isolateA, [port.sendPort, "main"]); |