Index: tests/isolate/nested_spawn2_test.dart |
diff --git a/tests/isolate/nested_spawn2_test.dart b/tests/isolate/nested_spawn2_test.dart |
index 0c477ddbf3dd78f1925b2f969ed43acb1c21a997..ea6331ec98a2bbb4c0e153ff3679c72bdc64d22b 100644 |
--- a/tests/isolate/nested_spawn2_test.dart |
+++ b/tests/isolate/nested_spawn2_test.dart |
@@ -8,7 +8,8 @@ |
library NestedSpawn2Test; |
import 'dart:isolate'; |
-import '../../pkg/unittest/lib/unittest.dart'; |
+import 'package:unittest/unittest.dart'; |
+import "remote_unittest_helper.dart"; |
void isolateA(SendPort init) { |
ReceivePort port = new ReceivePort(); |
@@ -51,7 +52,8 @@ void isolateB(SendPort mainPort) { |
})); |
} |
-main() { |
+void main([args, port]) { |
+ if (testRemote(main, port)) return; |
test("spawned isolate can spawn other isolates", () { |
ReceivePort init = new ReceivePort(); |
Isolate.spawn(isolateA, init.sendPort); |