mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[threading] Fix flaky test
GitOrigin-RevId: b27bcf586a5fa490d96c867b506b7da2208c8dc7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4c326fd909
commit
bb98d3c5e3
+7
-1
@@ -15,6 +15,7 @@ import com.intellij.testFramework.common.timeoutRunBlocking
|
||||
import com.intellij.testFramework.junit5.TestApplication
|
||||
import com.intellij.util.application
|
||||
import com.intellij.util.ui.EDT
|
||||
import com.intellij.util.ui.UIUtil
|
||||
import kotlinx.coroutines.*
|
||||
import kotlinx.coroutines.future.asCompletableFuture
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
@@ -304,7 +305,12 @@ class PlatformUtilitiesTest {
|
||||
})
|
||||
}
|
||||
catch (_: CustomException) {
|
||||
delay(1000)
|
||||
customExceptionWasRethrown.set(true)
|
||||
}
|
||||
try {
|
||||
UIUtil.dispatchAllInvocationEvents()
|
||||
}
|
||||
catch (e: CustomException) {
|
||||
customExceptionWasRethrown.set(true)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user