Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: test/vm_listener_test.dart

Issue 948113004: Support Dart 1.8.0. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698