diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/vfs/local/FileWatcherTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/vfs/local/FileWatcherTest.java index 533f55ef7733..a7fe91bc4b37 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/vfs/local/FileWatcherTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/vfs/local/FileWatcherTest.java @@ -368,9 +368,10 @@ public class FileWatcherTest extends PlatformLangTestCase { } } finally { - VirtualDirectoryImpl.disallowRootAccess(substRoot); delete(targetDir); new GeneralCommandLine("subst", subst + ":", "/d").createProcess().waitFor(); + myFileSystem.refresh(false); + VirtualDirectoryImpl.disallowRootAccess(substRoot); } }