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

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

Issue 2647573006: Fix service test script to avoid unhandled exception. (Closed)
Patch Set: Created 3 years, 11 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/regress_28443_test.dart
diff --git a/runtime/observatory/tests/service/regress_28443_test.dart b/runtime/observatory/tests/service/regress_28443_test.dart
index 09ffa798eea569cec9133a35c4cdb71698f0a69c..b135a6ffba62ff5aa20312188bf215ab4d768b3c 100644
--- a/runtime/observatory/tests/service/regress_28443_test.dart
+++ b/runtime/observatory/tests/service/regress_28443_test.dart
@@ -31,7 +31,11 @@ collect() async {
}
test_code() async { // LINE_B
- await collect();
+ try {
+ await collect();
+ } on TimeoutException {
+ print("ok");
+ }
}
Future<Isolate> stepThroughProgram(Isolate isolate) async {
« 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