Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1178)

Unified Diff: pkg/scheduled_test/test/utils.dart

Issue 13472016: Split apart several asynchronous tests to reduce timeouts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/scheduled_test/test/scheduled_test_test.dart ('k') | utils/tests/pub/oauth2/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ });
+}
« no previous file with comments | « pkg/scheduled_test/test/scheduled_test_test.dart ('k') | utils/tests/pub/oauth2/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698