File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
kotlinx-coroutines-core/jvm/test Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11package kotlinx.coroutines
22
33import kotlinx.coroutines.testing.TestBase
4+ import kotlinx.coroutines.testing.isJavaAndWindows
45import java.lang.ref.WeakReference
56import kotlin.coroutines.AbstractCoroutineContextElement
67import kotlin.coroutines.Continuation
@@ -74,6 +75,11 @@ class ThreadLocalCustomContinuationInterceptorTest : TestBase() {
7475 private var letThatSinkIn: Any = " What is my purpose? To frag the garbage collctor"
7576
7677 private fun ensureCoroutineContextGCed (coroutineContext : CoroutineContext , suspend : Boolean ) {
78+ // Tests are pretty timing-sensitive and flake ehavily on our virtualized Windows environment
79+ if (isJavaAndWindows) {
80+ return
81+ }
82+
7783 fun forceGcUntilRefIsCleaned (ref : WeakReference <CoroutineName >) {
7884 while (ref.get() != null ) {
7985 System .gc()
You can’t perform that action at this time.
0 commit comments