fix save cancelled because project disposed - delay to ensure that project saving have time to be started

GitOrigin-RevId: 73c4d97463068e225c06ad7920792989de818dac
This commit is contained in:
develar
2019-04-28 19:13:24 +03:00
committed by intellij-monorepo-bot
parent 4363fe9d59
commit 8bf15d812a
@@ -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)
}
}
}