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

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

Issue 312743002: Use 'Directory.watch' on Windows in pkg/watcher, instead of pooling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes 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
Index: pkg/watcher/test/utils.dart
diff --git a/pkg/watcher/test/utils.dart b/pkg/watcher/test/utils.dart
index b520bbd9a94ee75a08816a6d54e5622a6d1ff862..8b660e845822a464a37340e9529ca3a37a022466 100644
--- a/pkg/watcher/test/utils.dart
+++ b/pkg/watcher/test/utils.dart
@@ -71,6 +71,11 @@ void createSandbox() {
// Delete the sandbox when done.
currentSchedule.onComplete.schedule(() {
if (_sandboxDir != null) {
+ // TODO(rnystrom): Issue 19155. The watcher should already be closed when
+ // we clean up the sandbox.
+ if (_watcherEvents != null) {
+ _watcherEvents.close();
+ }
new Directory(_sandboxDir).deleteSync(recursive: true);
_sandboxDir = null;
}

Powered by Google App Engine
This is Rietveld 408576698