Tests: refresh file system looking for recently copied file

This commit is contained in:
Natalia Selezneva
2018-11-22 15:05:25 +03:00
parent 6d41834282
commit 7b6508a8f9
@@ -315,7 +315,7 @@ abstract class AbstractScriptConfigurationTest : KotlinCompletionTestCase() {
if (script == null) {
val target = File(project.basePath, scriptFile.name)
scriptFile.copyTo(target)
script = LocalFileSystem.getInstance().findFileByPath(target.path)
script = VfsUtil.findFileByIoFile(target, true)
}
if (script == null) error("Test file with script couldn't be found in test project")