From 263cf85c5ca787fa0c64b4deb8d722aca3076bb9 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 8 Mar 2017 12:46:13 +0100 Subject: [PATCH] Fix project leak in IdeReplExecutionTest --- .../org/jetbrains/kotlin/idea/repl/IdeReplExecutionTest.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/idea/tests/org/jetbrains/kotlin/idea/repl/IdeReplExecutionTest.kt b/idea/tests/org/jetbrains/kotlin/idea/repl/IdeReplExecutionTest.kt index 832c1bcb275..f6996f19088 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/repl/IdeReplExecutionTest.kt +++ b/idea/tests/org/jetbrains/kotlin/idea/repl/IdeReplExecutionTest.kt @@ -23,12 +23,12 @@ import org.jetbrains.kotlin.console.KotlinConsoleKeeper import org.jetbrains.kotlin.console.KotlinConsoleRunner import org.jetbrains.kotlin.idea.util.application.runWriteAction import org.junit.Test -import kotlin.properties.Delegates +import kotlin.reflect.KMutableProperty0 import kotlin.test.assertFalse import kotlin.test.assertTrue class IdeReplExecutionTest : PlatformTestCase() { - private var consoleRunner: KotlinConsoleRunner by Delegates.notNull() + private lateinit var consoleRunner: KotlinConsoleRunner private var commandsSent = 0 override fun setUp() { @@ -38,6 +38,7 @@ class IdeReplExecutionTest : PlatformTestCase() { override fun tearDown() { consoleRunner.dispose() + (this::consoleRunner as KMutableProperty0).set(null) super.tearDown() }