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

Unified Diff: pkg/analysis_server/test/src/plugin/plugin_watcher_test.dart

Issue 2830933005: Update PluginWatcher to be more efficient (Closed)
Patch Set: Created 3 years, 8 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/analysis_server/lib/src/plugin/plugin_watcher.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/src/plugin/plugin_watcher_test.dart
diff --git a/pkg/analysis_server/test/src/plugin/plugin_watcher_test.dart b/pkg/analysis_server/test/src/plugin/plugin_watcher_test.dart
index 137f068511f0e1f8621a2bfdbbc4f45844238094..622166cbff137490af47f67971a6985740f660de 100644
--- a/pkg/analysis_server/test/src/plugin/plugin_watcher_test.dart
+++ b/pkg/analysis_server/test/src/plugin/plugin_watcher_test.dart
@@ -66,6 +66,12 @@ class PluginWatcherTest {
.convertPath('/pkg2/tools/analysis_plugin/bin/plugin.dart'),
'');
await driver.computeResult('package:pkg2/pk2.dart');
+ //
+ // Wait until the timer associated with the driver's FileSystemState is
+ // guaranteed to have expired and the list of changed files will have been
+ // delivered.
+ //
+ await new Future.delayed(new Duration(seconds: 1));
expect(manager.addedContextRoots, hasLength(1));
}
« no previous file with comments | « pkg/analysis_server/lib/src/plugin/plugin_watcher.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698