Index: pkg/scheduled_test/lib/src/scheduled_future_matchers.dart |
diff --git a/pkg/scheduled_test/lib/src/scheduled_future_matchers.dart b/pkg/scheduled_test/lib/src/scheduled_future_matchers.dart |
index 83609f552517ec5ccde001d1788dd90aa9967c64..599613dee8bd4cffd484de108989df1c4d29b966 100644 |
--- a/pkg/scheduled_test/lib/src/scheduled_future_matchers.dart |
+++ b/pkg/scheduled_test/lib/src/scheduled_future_matchers.dart |
@@ -66,11 +66,10 @@ class _ScheduledCompletes extends BaseMatcher { |
currentSchedule.wrapFuture(item.then((value) { |
if (_matcher == null) return; |
- try { |
- expect(value, _matcher); |
- } catch (e, stackTrace) { |
- throw new AsyncError(e, outerTrace); |
- } |
+ // TODO(floitsch): we cannot switch traces anymore. |
+ // If expect throws we might want to be able to switch to the outer trace |
+ // instead. |
+ expect(value, _matcher); |
}), description); |
return true; |