From ab5067a0d39da20bb5ba300628e9164c0480df9d Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 19 Oct 2016 18:03:22 +0200 Subject: [PATCH] remove write action around closeAndDeleteProject() --- .../src/org/jetbrains/kotlin/idea/test/testUtils.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() }