| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library test_utils; | 5 library test_utils; |
| 6 | 6 |
| 7 import 'dart:io'; | |
| 8 import 'dart:async'; | 7 import 'dart:async'; |
| 9 | 8 |
| 10 import 'package:scheduled_test/scheduled_test.dart'; | 9 import 'package:scheduled_test/scheduled_test.dart'; |
| 11 import 'package:scheduled_test/src/utils.dart'; | 10 import 'package:scheduled_test/src/utils.dart'; |
| 12 import 'package:scheduled_test/src/mock_clock.dart' as mock_clock; | 11 import 'package:scheduled_test/src/mock_clock.dart' as mock_clock; |
| 13 | 12 |
| 14 import 'metatest.dart'; | 13 import 'metatest.dart'; |
| 15 | 14 |
| 16 export 'package:scheduled_test/src/utils.dart'; | 15 export 'package:scheduled_test/src/utils.dart'; |
| 17 | 16 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 /// Sets up a timeout for every metatest in this file. | 51 /// Sets up a timeout for every metatest in this file. |
| 53 void setUpTimeout() { | 52 void setUpTimeout() { |
| 54 metaSetUp(() { | 53 metaSetUp(() { |
| 55 // TODO(nweiz): We used to only increase the timeout to 10s for the Windows | 54 // TODO(nweiz): We used to only increase the timeout to 10s for the Windows |
| 56 // bots, but the Linux and Mac bots have started taking upwards of 5s when | 55 // bots, but the Linux and Mac bots have started taking upwards of 5s when |
| 57 // running pumpEventQueue, so we're increasing the timeout across the board | 56 // running pumpEventQueue, so we're increasing the timeout across the board |
| 58 // (see issue 9248). | 57 // (see issue 9248). |
| 59 currentSchedule.timeout = new Duration(seconds: 10); | 58 currentSchedule.timeout = new Duration(seconds: 10); |
| 60 }); | 59 }); |
| 61 } | 60 } |
| OLD | NEW |