| Index: pkg/scheduled_test/test/utils.dart
|
| diff --git a/pkg/scheduled_test/test/utils.dart b/pkg/scheduled_test/test/utils.dart
|
| index d6c272d4e2e4a9bbc968e205d240d444f78615ed..4dd7ef93c33d238d1b0b3bfa6c8478a421abd702 100644
|
| --- a/pkg/scheduled_test/test/utils.dart
|
| +++ b/pkg/scheduled_test/test/utils.dart
|
| @@ -7,9 +7,12 @@ library test_utils;
|
| import 'dart:io';
|
| import 'dart:async';
|
|
|
| +import 'package:scheduled_test/scheduled_test.dart';
|
| import 'package:scheduled_test/src/utils.dart';
|
| import 'package:scheduled_test/src/mock_clock.dart' as mock_clock;
|
|
|
| +import 'metatest.dart';
|
| +
|
| export 'package:scheduled_test/src/utils.dart';
|
|
|
| /// Wraps [input] to provide a timeout. If [input] completes before
|
| @@ -45,3 +48,14 @@ Future sleep(int milliseconds) {
|
| });
|
| return completer.future;
|
| }
|
| +
|
| +/// Sets up a timeout for every metatest in this file.
|
| +void setUpTimeout() {
|
| + metaSetUp(() {
|
| + // TODO(nweiz): We used to only increase the timeout to 10s for the Windows
|
| + // bots, but the Linux and Mac bots have started taking upwards of 5s when
|
| + // running pumpEventQueue, so we're increasing the timeout across the board
|
| + // (see issue 9248).
|
| + currentSchedule.timeout = new Duration(seconds: 10);
|
| + });
|
| +}
|
|
|