Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: runtime/observatory/tests/service/async_step_test.dart

Issue 1234783007: Remove a source of flakiness from async_step_test. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/service/async_step_test.dart
diff --git a/runtime/observatory/tests/service/async_step_test.dart b/runtime/observatory/tests/service/async_step_test.dart
index 3ccbbe0ca8da28b5ea4af62dc38c988f93fed4cb..fb0fafd202770ccbc744e79be1aef1444d1812ce 100644
--- a/runtime/observatory/tests/service/async_step_test.dart
+++ b/runtime/observatory/tests/service/async_step_test.dart
@@ -25,11 +25,12 @@ testMain() {
doAsync(true);
}
-
asyncStep(Isolate isolate) async {
- var event = isolate.pauseEvent;
+ await isolate.reload(); // isolate.pauseEvent may be stale
+ ServiceEvent event = isolate.pauseEvent;
print("Pause event is $event");
expect(event, isNotNull);
+ expect(event.kind, equals(ServiceEvent.kPauseBreakpoint));
// 1. Set breakpoint for the continuation and resume the isolate.
Instance continuation = event.asyncContinuation;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698