Move GradleQuickFixTest checks in EDT Thread
This commit is contained in:
+2
@@ -60,6 +60,7 @@ class GradleQuickFixTest : GradleImportingTestCase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun applyInspectionFixes(tool: LocalInspectionTool, file: VirtualFile) {
|
private fun applyInspectionFixes(tool: LocalInspectionTool, file: VirtualFile) {
|
||||||
|
runInEdtAndWait {
|
||||||
invokeTestRunnable {
|
invokeTestRunnable {
|
||||||
val presentation = runInspection(tool, myProject, listOf(file))
|
val presentation = runInspection(tool, myProject, listOf(file))
|
||||||
|
|
||||||
@@ -74,6 +75,7 @@ class GradleQuickFixTest : GradleImportingTestCase() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun checkResult(file: VirtualFile) {
|
private fun checkResult(file: VirtualFile) {
|
||||||
KotlinTestUtils.assertEqualsToFile(File(getTestDataPath(), "build.gradle.after"), LoadTextUtil.loadText(file).toString())
|
KotlinTestUtils.assertEqualsToFile(File(getTestDataPath(), "build.gradle.after"), LoadTextUtil.loadText(file).toString())
|
||||||
|
|||||||
Reference in New Issue
Block a user