Refresh FS before searching for files on the local FS in Python tests

PyMoveTest#testStarImportWithUsages was failing because its expected
data located in the testData folder changed, but the old version
remained in FS caches.
This commit is contained in:
Andrey Vlasovskikh
2015-03-26 15:03:24 +03:00
parent 282d32939e
commit d5a6ab00a3
@@ -86,7 +86,7 @@ public abstract class PyTestCase extends UsefulTestCase {
@Nullable
protected static VirtualFile getVirtualFileByName(String fileName) {
return LocalFileSystem.getInstance().findFileByPath(fileName.replace(File.separatorChar, '/'));
return LocalFileSystem.getInstance().refreshAndFindFileByPath(fileName.replace(File.separatorChar, '/'));
}
@Override