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 7f1c402e1149cd75a6ff570a565b7712e16e5e84..c21c85834c0d5800eabd41ac0791f060dfaddf42 100644 |
--- a/runtime/observatory/tests/service/gc_test.dart |
+++ b/runtime/observatory/tests/service/gc_test.dart |
@@ -21,23 +21,25 @@ void script() { |
} |
var tests = [ |
- (Isolate isolate) { |
- Completer completer = new Completer(); |
- // Expect at least this many GC events. |
- int gcCountdown = 3; |
- isolate.vm.getEventStream(VM.kGCStream).then((stream) { |
- var subscription; |
- subscription = stream.listen((ServiceEvent event) { |
- assert(event.kind == ServiceEvent.kGC); |
- print('Received GC event'); |
- if (--gcCountdown == 0) { |
- subscription.cancel(); |
- completer.complete(); |
- } |
- }); |
+ |
+(Isolate isolate) { |
+ Completer completer = new Completer(); |
+ // Expect at least this many GC events. |
+ int gcCountdown = 3; |
+ isolate.vm.getEventStream(VM.kGCStream).then((stream) { |
+ var subscription; |
+ subscription = stream.listen((ServiceEvent event) { |
+ assert(event.kind == ServiceEvent.kGC); |
+ print('Received GC event'); |
+ if (--gcCountdown == 0) { |
+ subscription.cancel(); |
+ completer.complete(); |
+ } |
}); |
- return completer.future; |
- }, |
+ }); |
+ return completer.future; |
+}, |
+ |
]; |
main(args) => runIsolateTests(args, tests, testeeConcurrent: script); |