| Index: pkg/scheduled_test/lib/src/substitute_future.dart
|
| diff --git a/pkg/scheduled_test/lib/src/substitute_future.dart b/pkg/scheduled_test/lib/src/substitute_future.dart
|
| index abbb5d4f75058ab14fe2ac3ba480c12cf9e75759..c4b9ffb9c787ee7d127a604ff7d80d893654bcab 100644
|
| --- a/pkg/scheduled_test/lib/src/substitute_future.dart
|
| +++ b/pkg/scheduled_test/lib/src/substitute_future.dart
|
| @@ -24,9 +24,9 @@ class SubstituteFuture<T> implements Future<T> {
|
| }
|
|
|
| Stream<T> asStream() => _completer.future.asStream();
|
| - Future catchError(onError(asyncError), {bool test(error)}) =>
|
| + Future catchError(Function onError, {bool test(error)}) =>
|
| _completer.future.catchError(onError, test: test);
|
| - Future then(onValue(T value), {onError(error)}) =>
|
| + Future then(onValue(T value), {Function onError}) =>
|
| _completer.future.then(onValue, onError: onError);
|
| Future<T> whenComplete(action()) => _completer.future.whenComplete(action);
|
|
|
| @@ -44,9 +44,9 @@ class SubstituteFuture<T> implements Future<T> {
|
| if (_inner != newFuture) return;
|
| _completer.complete(value);
|
| _complete = true;
|
| - }).catchError((error) {
|
| + }).catchError((error, stackTrace) {
|
| if (_inner != newFuture) return;
|
| - _completer.completeError(error);
|
| + _completer.completeError(error, stackTrace);
|
| _complete = true;
|
| });
|
| return oldFuture;
|
|
|