Index: runtime/observatory/tests/service/steal_breakpoint_test.dart |
diff --git a/runtime/observatory/tests/service/steal_breakpoint_test.dart b/runtime/observatory/tests/service/steal_breakpoint_test.dart |
index 702bf93318d08733d773c91bb21b65a8f3ddeacb..cbd8005163e64e6201034cf4dff3ea281d47c466 100644 |
--- a/runtime/observatory/tests/service/steal_breakpoint_test.dart |
+++ b/runtime/observatory/tests/service/steal_breakpoint_test.dart |
@@ -30,7 +30,7 @@ var tests = [ |
// Set up a listener to wait for breakpoint events. |
Completer completer = new Completer(); |
var subscription; |
- subscription = isolate.vm.events.stream.listen((ServiceEvent event) { |
+ subscription = isolate.vm.debugEvents.listen((ServiceEvent event) { |
if (event.eventType == ServiceEvent.kPauseBreakpoint) { |
print('Isolate paused at breakpoint'); |
subscription.cancel(); |
@@ -62,7 +62,7 @@ var tests = [ |
(Isolate isolate) async { |
Completer completer = new Completer(); |
var subscription; |
- subscription = isolate.vm.events.stream.listen((ServiceEvent event) { |
+ subscription = isolate.vm.debugEvents.listen((ServiceEvent event) { |
if (event.eventType == ServiceEvent.kResume) { |
print('Isolate resumed'); |
subscription.cancel(); |