Index: runtime/observatory/tests/service/gc_test.dart |
diff --git a/runtime/observatory/tests/service/gc_test.dart b/runtime/observatory/tests/service/gc_test.dart |
index df9a0ffe48f441e415df9c0ea4a58a6ccd405578..e5adaedf7a262f9854a1b610a5c8bc57b9ca6226 100644 |
--- a/runtime/observatory/tests/service/gc_test.dart |
+++ b/runtime/observatory/tests/service/gc_test.dart |
@@ -26,7 +26,7 @@ var tests = [ |
Completer completer = new Completer(); |
// Expect at least this many GC events. |
int gcCountdown = 3; |
- isolate.vm.gcEvents.listen((ServiceEvent event) { |
+ isolate.vm.events.stream.listen((ServiceEvent event) { |
if (event.eventType == ServiceEvent.kGC) { |
print('Received GC event'); |
if (--gcCountdown == 0) { |