Fix UpdateConfigurationQuickFixTest.testEnableCoroutinesFacet test
This commit is contained in:
@@ -187,7 +187,7 @@ class UpdateConfigurationQuickFixTest : LightPlatformCodeInsightFixtureTestCase(
|
|||||||
val name = if (path == "mockRuntime106") "kotlin-runtime.jar" else "kotlin-stdlib.jar"
|
val name = if (path == "mockRuntime106") "kotlin-runtime.jar" else "kotlin-stdlib.jar"
|
||||||
val tempFile = File(FileUtil.createTempDirectory("kotlin-update-configuration", null), name)
|
val tempFile = File(FileUtil.createTempDirectory("kotlin-update-configuration", null), name)
|
||||||
FileUtil.copy(File("idea/testData/configuration/$path/$name"), tempFile)
|
FileUtil.copy(File("idea/testData/configuration/$path/$name"), tempFile)
|
||||||
val tempVFile = LocalFileSystem.getInstance().findFileByIoFile(tempFile)!!
|
val tempVFile = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(tempFile) ?: error("Can't find file: $tempFile")
|
||||||
|
|
||||||
updateModel(myFixture.module) { model ->
|
updateModel(myFixture.module) { model ->
|
||||||
val editor = NewLibraryEditor()
|
val editor = NewLibraryEditor()
|
||||||
|
|||||||
+1
-1
@@ -190,7 +190,7 @@ class UpdateConfigurationQuickFixTest : LightPlatformCodeInsightFixtureTestCase(
|
|||||||
val name = if (path == "mockRuntime106") "kotlin-runtime.jar" else "kotlin-stdlib.jar"
|
val name = if (path == "mockRuntime106") "kotlin-runtime.jar" else "kotlin-stdlib.jar"
|
||||||
val tempFile = File(FileUtil.createTempDirectory("kotlin-update-configuration", null), name)
|
val tempFile = File(FileUtil.createTempDirectory("kotlin-update-configuration", null), name)
|
||||||
FileUtil.copy(File("idea/testData/configuration/$path/$name"), tempFile)
|
FileUtil.copy(File("idea/testData/configuration/$path/$name"), tempFile)
|
||||||
val tempVFile = LocalFileSystem.getInstance().findFileByIoFile(tempFile)!!
|
val tempVFile = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(tempFile) ?: error("Can't find file: $tempFile")
|
||||||
|
|
||||||
updateModel(myFixture.module) { model ->
|
updateModel(myFixture.module) { model ->
|
||||||
val editor = NewLibraryEditor()
|
val editor = NewLibraryEditor()
|
||||||
|
|||||||
Reference in New Issue
Block a user