Tests: refresh file system looking for recently copied file
This commit is contained in:
@@ -315,7 +315,7 @@ abstract class AbstractScriptConfigurationTest : KotlinCompletionTestCase() {
|
|||||||
if (script == null) {
|
if (script == null) {
|
||||||
val target = File(project.basePath, scriptFile.name)
|
val target = File(project.basePath, scriptFile.name)
|
||||||
scriptFile.copyTo(target)
|
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")
|
if (script == null) error("Test file with script couldn't be found in test project")
|
||||||
|
|||||||
Reference in New Issue
Block a user