Index: pkg/watcher/test/utils.dart |
diff --git a/pkg/watcher/test/utils.dart b/pkg/watcher/test/utils.dart |
index b520bbd9a94ee75a08816a6d54e5622a6d1ff862..ec3b22f837683ef25e635153f7287ed538443551 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): The wacthers should already be closed when we clean up |
kasperl
2014/06/03 11:28:09
wacthers -> watchers. File an issue for this inste
Anders Johnsen
2014/06/03 11:44:14
Done.
|
+ // the sandbox. |
+ if (_watcherEvents != null) { |
+ _watcherEvents.close(); |
+ } |
new Directory(_sandboxDir).deleteSync(recursive: true); |
_sandboxDir = null; |
} |