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

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

Issue 18877005: Split up tests and add some heartbeats to try to make them not timeout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix cut/paste error. Created 7 years, 5 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/watcher/test/ready_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/watcher/test/utils.dart
diff --git a/pkg/watcher/test/utils.dart b/pkg/watcher/test/utils.dart
index 7b3da028a40959aed556a32931932daf9b3e6da9..5a22e609b3fb04b15088416a2ba7dcf337e1534c 100644
--- a/pkg/watcher/test/utils.dart
+++ b/pkg/watcher/test/utils.dart
@@ -77,7 +77,9 @@ void createSandbox() {
/// and is polling for changes. If you pass `false` for [waitForReady], it will
/// not schedule this delay.
DirectoryWatcher createWatcher({bool waitForReady}) {
- _watcher = new DirectoryWatcher(_sandboxDir);
+ // Use a short delay to make the tests run quickly.
+ _watcher = new DirectoryWatcher(_sandboxDir,
+ pollingDelay: new Duration(milliseconds: 100));
nweiz 2013/07/12 22:37:17 This could probably be 0s or something vanishingly
// Wait until the scan is finished so that we don't miss changes to files
// that could occur before the scan completes.
« no previous file with comments | « pkg/watcher/test/ready_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698