Index: runtime/observatory/tests/service/test_helper.dart |
diff --git a/runtime/observatory/tests/service/test_helper.dart b/runtime/observatory/tests/service/test_helper.dart |
index fed6ee1c609f27016a11ab13f2b4920fb407a5e0..96828ae0f5edcfe4a192a49627b19e16c1591af8 100644 |
--- a/runtime/observatory/tests/service/test_helper.dart |
+++ b/runtime/observatory/tests/service/test_helper.dart |
@@ -153,7 +153,7 @@ Future processServiceEvents(VM vm, ServiceEventHandler handler) { |
Future<Isolate> hasStoppedAtBreakpoint(Isolate isolate) { |
if ((isolate.pauseEvent != null) && |
- (isolate.pauseEvent.eventType == ServiceEvent.kPauseBreakpoint)) { |
+ (isolate.pauseEvent.kind == ServiceEvent.kPauseBreakpoint)) { |
// Already waiting at a breakpoint. |
print('Breakpoint reached'); |
return new Future.value(isolate); |
@@ -163,7 +163,7 @@ Future<Isolate> hasStoppedAtBreakpoint(Isolate isolate) { |
Completer completer = new Completer(); |
var subscription; |
subscription = isolate.vm.events.stream.listen((ServiceEvent event) { |
- if (event.eventType == ServiceEvent.kPauseBreakpoint) { |
+ if (event.kind == ServiceEvent.kPauseBreakpoint) { |
print('Breakpoint reached'); |
subscription.cancel(); |
completer.complete(isolate); |