Index: lib/src/frontend/future_matchers.dart |
diff --git a/lib/src/frontend/future_matchers.dart b/lib/src/frontend/future_matchers.dart |
index 8a38192301e3d8fd3fe036b1991f0f2811ed57ee..a5b86daa80bd1afcd2712adac85ad57fff042329 100644 |
--- a/lib/src/frontend/future_matchers.dart |
+++ b/lib/src/frontend/future_matchers.dart |
@@ -51,10 +51,7 @@ class _Completes extends Matcher { |
if (_matcher != null) expect(value, _matcher); |
Invoker.current.removeOutstandingCallback(); |
}, onError: (error, trace) { |
- if (error is TestFailure) { |
- Invoker.current.handleError(error, trace); |
- return; |
- } |
+ if (error is TestFailure) throw error; |
var id = _id == '' ? '' : '${_id} '; |
var reason = 'Expected future ${id}to complete successfully, ' |