Index: test/vm_listener_test.dart |
diff --git a/test/vm_listener_test.dart b/test/vm_listener_test.dart |
index f401a0c7f1338a882cbbb97910c8390563629e3f..bf7dea4706765d8a6c79b2f8f82dd24ad6ef87ff 100644 |
--- a/test/vm_listener_test.dart |
+++ b/test/vm_listener_test.dart |
@@ -6,6 +6,7 @@ import 'dart:async'; |
import 'dart:isolate'; |
import 'package:unittest/src/invoker.dart'; |
+import 'package:unittest/src/io.dart'; |
import 'package:unittest/src/isolate_test.dart'; |
import 'package:unittest/src/live_test.dart'; |
import 'package:unittest/src/remote_exception.dart'; |
@@ -28,7 +29,9 @@ LiveTest _liveTest; |
void main() { |
tearDown(() { |
- if (_isolate != null) _isolate.kill(Isolate.IMMEDIATE); |
+ if (_isolate != null && supportsIsolateKill) { |
+ _isolate.kill(Isolate.IMMEDIATE); |
+ } |
_isolate = null; |
if (_liveTest != null) _liveTest.close(); |