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

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

Issue 1234203003: Add prints to help diagnose flaky async_step_test failure. (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 59a0a7e80f861d92928a1fb47c4ae0a4476a3e6d..3ccbbe0ca8da28b5ea4af62dc38c988f93fed4cb 100644
--- a/runtime/observatory/tests/service/async_step_test.dart
+++ b/runtime/observatory/tests/service/async_step_test.dart
@@ -28,23 +28,29 @@ testMain() {
asyncStep(Isolate isolate) async {
var event = isolate.pauseEvent;
+ print("Pause event is $event");
expect(event, isNotNull);
// 1. Set breakpoint for the continuation and resume the isolate.
Instance continuation = event.asyncContinuation;
print("Async continuation is $continuation");
+ if (continuation == null) {
+ print(await isolate.getStack());
+ }
expect(continuation.isClosure, isTrue);
var bpt = await isolate.addBreakOnActivation(continuation);
- expect(bpt is Breakpoint, isTrue);
print("Async step to $bpt");
+ expect(bpt is Breakpoint, isTrue);
await isolate.resume();
await hasStoppedAtBreakpoint(isolate);
+ print("Big step to: ${isolate.pauseEvent}");
// 2. Step past the state-machine dispatch.
await isolate.stepOver();
await hasStoppedAtBreakpoint(isolate);
+ print("Small step to: ${isolate.pauseEvent}");
}
var tests = [
« 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