Chromium Code Reviews| 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. |