diff --git a/java/java-tests/testSrc/com/intellij/openapi/roots/impl/DirectoryIndexTest.java b/java/java-tests/testSrc/com/intellij/openapi/roots/impl/DirectoryIndexTest.java index 88151e01c8fd..072e6b3ff52a 100644 --- a/java/java-tests/testSrc/com/intellij/openapi/roots/impl/DirectoryIndexTest.java +++ b/java/java-tests/testSrc/com/intellij/openapi/roots/impl/DirectoryIndexTest.java @@ -168,6 +168,8 @@ public class DirectoryIndexTest extends IdeaTestCase { }); myIndex = DirectoryIndex.getInstance(myProject); + // to not interfere with previous test firing vfs events + VirtualFileManager.getInstance().syncRefresh(); } private CompilerProjectExtension getCompilerProjectExtension() {