diff --git a/idea/idea-test-framework/src/org/jetbrains/kotlin/idea/test/testUtils.kt b/idea/idea-test-framework/src/org/jetbrains/kotlin/idea/test/testUtils.kt index e6db7f205eb..ae9cb1402d2 100644 --- a/idea/idea-test-framework/src/org/jetbrains/kotlin/idea/test/testUtils.kt +++ b/idea/idea-test-framework/src/org/jetbrains/kotlin/idea/test/testUtils.kt @@ -86,8 +86,7 @@ fun KtFile.dumpTextWithErrors(): String { return header + text } -fun closeAndDeleteProject(): Unit = - ApplicationManager.getApplication().runWriteAction { LightPlatformTestCase.closeAndDeleteProject() } +fun closeAndDeleteProject() = LightPlatformTestCase.closeAndDeleteProject() fun doKotlinTearDown(project: Project, runnable: RunnableWithException) { doKotlinTearDown(project) { runnable.run() }