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

Unified Diff: pkg/analysis_server/test/physical_resource_provider_test.dart

Issue 315953002: Give the watchers more time to detect changes, in physical_resource_provider_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/physical_resource_provider_test.dart
diff --git a/pkg/analysis_server/test/physical_resource_provider_test.dart b/pkg/analysis_server/test/physical_resource_provider_test.dart
index a74e326083b30fbfc3212070f6f899f0f4631105..e3dfdc7b68d6dcf18fdccd104a46d01c3d253357 100644
--- a/pkg/analysis_server/test/physical_resource_provider_test.dart
+++ b/pkg/analysis_server/test/physical_resource_provider_test.dart
@@ -33,21 +33,22 @@ main() {
Future delayed(computation()) {
return new Future.delayed(
- new Duration(milliseconds: 100), computation);
+ new Duration(seconds: 1), computation);
}
watchingFolder(String path, test(List<WatchEvent> changesReceived)) {
// Delay before we start watching the folder. This is necessary
- // because on MacOS, file modifications that occur just before we start
- // watching are sometimes misclassified as happening just after we
- // start watching.
+ // because on MacOS, file modifications that occur just before we
+ // start watching are sometimes misclassified as happening just after
+ // we start watching.
return delayed(() {
Folder folder = PhysicalResourceProvider.INSTANCE.getResource(path);
var changesReceived = <WatchEvent>[];
var subscription = folder.changes.listen(changesReceived.add);
- // Delay running the rest of the test to allow folder.changes to take
- // a snapshot of the current directory state. Otherwise it won't be
- // able to reliably distinguish new files from modified ones.
+ // Delay running the rest of the test to allow folder.changes to
+ // take a snapshot of the current directory state. Otherwise it
+ // won't be able to reliably distinguish new files from modified
+ // ones.
return delayed(() => test(changesReceived)).whenComplete(() {
subscription.cancel();
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698