From 8bf15d812adcde4de0e4d9531ee84479da3088cd Mon Sep 17 00:00:00 2001 From: develar Date: Fri, 26 Apr 2019 15:00:47 +0200 Subject: [PATCH] fix `save cancelled because project disposed` - delay to ensure that project saving have time to be started GitOrigin-RevId: 73c4d97463068e225c06ad7920792989de818dac --- platform/configuration-store-impl/testSrc/ProjectStoreTest.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/configuration-store-impl/testSrc/ProjectStoreTest.kt b/platform/configuration-store-impl/testSrc/ProjectStoreTest.kt index 4e04871da625..2bfa965a6d0b 100644 --- a/platform/configuration-store-impl/testSrc/ProjectStoreTest.kt +++ b/platform/configuration-store-impl/testSrc/ProjectStoreTest.kt @@ -18,6 +18,7 @@ import com.intellij.testFramework.assertions.Assertions.assertThat import com.intellij.util.PathUtil import com.intellij.util.io.readText import com.intellij.util.io.write +import kotlinx.coroutines.delay import kotlinx.coroutines.launch import kotlinx.coroutines.runBlocking import kotlinx.coroutines.withTimeout @@ -228,6 +229,8 @@ internal class ProjectStoreTest { launch { project.stateStore.save() } + + delay(50) } } }