| Index: pkg/unittest/lib/src/future_matchers.dart
|
| diff --git a/pkg/unittest/lib/src/future_matchers.dart b/pkg/unittest/lib/src/future_matchers.dart
|
| index 9154c7c1b72f9abb223a0cbbcbf5ff1613d9df40..d757412b56cb3704d862a2b2335f4fc869687d0e 100644
|
| --- a/pkg/unittest/lib/src/future_matchers.dart
|
| +++ b/pkg/unittest/lib/src/future_matchers.dart
|
| @@ -35,9 +35,9 @@ class _Completes extends BaseMatcher {
|
| bool matches(item, MatchState matchState) {
|
| if (item is! Future) return false;
|
|
|
| - item.then((value) {
|
| + item.then(wrapAsync((value) {
|
| if (_matcher != null) expect(value, _matcher);
|
| - });
|
| + }));
|
|
|
| item.catchError((e) {
|
| var reason = 'Expected future to complete successfully, but it failed '
|
|
|