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

Unified Diff: tests/corelib/list_unmodifiable_test.dart

Issue 2683403003: Improve error message in flaky test (Closed)
Patch Set: Created 3 years, 10 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: tests/corelib/list_unmodifiable_test.dart
diff --git a/tests/corelib/list_unmodifiable_test.dart b/tests/corelib/list_unmodifiable_test.dart
index e2f82e7bd08c194328d76539ffc4b2da0050069b..2989ea98cb55a76c979d86cf2b6273a62c292d3f 100644
--- a/tests/corelib/list_unmodifiable_test.dart
+++ b/tests/corelib/list_unmodifiable_test.dart
@@ -107,7 +107,9 @@ class Test<E> {
try {
op(list);
} catch (e2) {
- Expect.equals(e.runtimeType, e2.runtimeType);
+ Expect.equals(e.runtimeType, e2.runtimeType,
+ "$name :: $opName threw different exceptions: "
+ "${e.runtimeType} vs ${e2.runtimeType}");
return;
}
Expect.fail("$name-$opName didn't throw, expected: $e");
« 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