Index: runtime/observatory/tests/service/isolate_lifecycle_test.dart |
diff --git a/runtime/observatory/tests/service/isolate_lifecycle_test.dart b/runtime/observatory/tests/service/isolate_lifecycle_test.dart |
index eb8b018e9ff5aad56e1805410931a01a563cf57d..992b10062ddd6de049fe16a9b7b72b9692f481ba 100644 |
--- a/runtime/observatory/tests/service/isolate_lifecycle_test.dart |
+++ b/runtime/observatory/tests/service/isolate_lifecycle_test.dart |
@@ -16,7 +16,8 @@ final spawnCount = 4; |
final resumeCount = spawnCount ~/ 2; |
final isolates = []; |
-void spawnEntry(int i) {} |
+void spawnEntry(int i) { |
+} |
Future during() async { |
debugger(); |
@@ -43,6 +44,7 @@ var tests = [ |
expect(vm.isolates.length, 1); |
await hasStoppedAtBreakpoint(vm.isolates[0]); |
}, |
+ |
(VM vm) async { |
Completer completer = new Completer(); |
var stream = await vm.getEventStream(VM.kIsolateStream); |
@@ -68,12 +70,14 @@ var tests = [ |
expect(runnableCount, spawnCount); |
expect(vm.isolates.length, spawnCount + 1); |
}, |
+ |
(VM vm) async { |
// Load each isolate. |
for (var isolate in vm.isolates) { |
await isolate.load(); |
} |
}, |
+ |
(VM vm) async { |
Completer completer = new Completer(); |
var stream = await vm.getEventStream(VM.kDebugStream); |
@@ -91,6 +95,8 @@ var tests = [ |
} |
expect(numPaused(vm), spawnCount + 1); |
}, |
+ |
+ |
(VM vm) async { |
var resumedReceived = 0; |
Completer completer = new Completer(); |
@@ -116,17 +122,19 @@ var tests = [ |
try { |
resumesIssued++; |
await isolate.resume(); |
- } catch (_) {} |
+ } catch(_) {} |
if (resumesIssued == resumeCount) { |
break; |
} |
} |
await completer.future; |
}, |
+ |
(VM vm) async { |
expect(numPaused(vm), spawnCount + 1 - resumeCount); |
}, |
]; |
-main(args) async => |
- runVMTests(args, tests, testeeConcurrent: during, pause_on_exit: true); |
+main(args) async => runVMTests(args, tests, |
+ testeeConcurrent: during, |
+ pause_on_exit: true); |