Index: runtime/observatory/tests/service/pause_on_start_and_exit_test.dart |
diff --git a/runtime/observatory/tests/service/pause_on_start_and_exit_test.dart b/runtime/observatory/tests/service/pause_on_start_and_exit_test.dart |
index 7c63e9d609201d00151199497a338f92be0aa690..091c83f4de598ac0c9788786d17786984c24463d 100644 |
--- a/runtime/observatory/tests/service/pause_on_start_and_exit_test.dart |
+++ b/runtime/observatory/tests/service/pause_on_start_and_exit_test.dart |
@@ -15,24 +15,32 @@ void testMain() { |
var tests = [ |
(Isolate isolate) async { |
+ print('Getting stream...'); |
Completer completer = new Completer(); |
var stream = await isolate.vm.getEventStream(VM.kDebugStream); |
+ print('Subscribing...'); |
var subscription; |
subscription = stream.listen((ServiceEvent event) { |
if (event.kind == ServiceEvent.kPauseStart) { |
- print('Received PauseStart'); |
+ print('Received $event'); |
subscription.cancel(); |
completer.complete(); |
+ } else { |
+ print('Ignoring event $event'); |
} |
}); |
+ print('Subscribed. Pause event is ${isolate.pauseEvent}'); |
if (isolate.pauseEvent != null && |
isolate.pauseEvent.kind == ServiceEvent.kPauseStart) { |
// Wait for the isolate to hit PauseStart. |
subscription.cancel(); |
+ print('Subscription cancelled.'); |
} else { |
+ print('Waiting for pause start event.'); |
await completer.future; |
} |
+ print('Done waiting for pause event.'); |
// Grab the timestamp. |
var pausetime1 = isolate.pauseEvent.timestamp; |