From c65464cf22980d4119916fcdfaa8095c458ca623 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Thu, 15 Feb 2018 09:29:43 +0100 Subject: [PATCH] =?UTF-8?q?DoNotSaveDefaultsTest.testApp=20test=20?= =?UTF-8?q?=E2=80=94=20ensure=20that=20DefaultProjectStoreTestComponent=20?= =?UTF-8?q?is=20removed=20on=20test=20end?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../testSrc/DefaultProjectStoreTest.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/configuration-store-impl/testSrc/DefaultProjectStoreTest.kt b/platform/configuration-store-impl/testSrc/DefaultProjectStoreTest.kt index efaa30e5e169..87ed6f5783f4 100644 --- a/platform/configuration-store-impl/testSrc/DefaultProjectStoreTest.kt +++ b/platform/configuration-store-impl/testSrc/DefaultProjectStoreTest.kt @@ -14,6 +14,7 @@ import com.intellij.openapi.vfs.refreshVfs import com.intellij.testFramework.* import com.intellij.testFramework.assertions.Assertions.assertThat import com.intellij.testFramework.rules.InMemoryFsRule +import com.intellij.util.SmartList import com.intellij.util.io.delete import com.intellij.util.io.systemIndependentPath import com.intellij.util.isEmpty @@ -105,6 +106,11 @@ internal class DefaultProjectStoreTest { } } finally { + // clear state + defaultTestComponent.loadState(Element("empty")) + runInEdtAndWait { + stateStore.save(SmartList()) + } stateStore.removeComponent(TEST_COMPONENT_NAME) } }