| Index: pkg/scheduled_test/test/scheduled_test/wrap_future_test.dart
|
| diff --git a/pkg/scheduled_test/test/scheduled_test/wrap_future_test.dart b/pkg/scheduled_test/test/scheduled_test/wrap_future_test.dart
|
| index 077aeb4473b1a462021e9e2dddf7a2fa02ba52ba..b6b5ca0169a85cf222262cf8abd8bbcc9e33ecfc 100644
|
| --- a/pkg/scheduled_test/test/scheduled_test/wrap_future_test.dart
|
| +++ b/pkg/scheduled_test/test/scheduled_test/wrap_future_test.dart
|
| @@ -44,6 +44,26 @@ void main(_, message) {
|
| });
|
| });
|
|
|
| + expectTestsPass("a returned future should be implicitly wrapped",
|
| + () {
|
| + test('test', () {
|
| + var futureComplete = false;
|
| + currentSchedule.onComplete.schedule(() => expect(futureComplete, isTrue));
|
| +
|
| + return pumpEventQueue().then((_) => futureComplete = true);
|
| + });
|
| + });
|
| +
|
| + expectTestsPass("a returned future should not block the schedule",
|
| + () {
|
| + test('test', () {
|
| + var futureComplete = false;
|
| + schedule(() => expect(futureComplete, isFalse));
|
| +
|
| + return pumpEventQueue().then((_) => futureComplete = true);
|
| + });
|
| + });
|
| +
|
| expectTestsPass("wrapFuture should pass through the error of the wrapped "
|
| "future", () {
|
| var error;
|
|
|