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 1
1
package kotlinx.coroutines
2
2
3
3
import kotlinx.coroutines.testing.TestBase
4
+ import kotlinx.coroutines.testing.isJavaAndWindows
4
5
import java.lang.ref.WeakReference
5
6
import kotlin.coroutines.AbstractCoroutineContextElement
6
7
import kotlin.coroutines.Continuation
@@ -74,6 +75,11 @@ class ThreadLocalCustomContinuationInterceptorTest : TestBase() {
74
75
private var letThatSinkIn: Any = " What is my purpose? To frag the garbage collctor"
75
76
76
77
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
+
77
83
fun forceGcUntilRefIsCleaned (ref : WeakReference <CoroutineName >) {
78
84
while (ref.get() != null ) {
79
85
System .gc()
You can’t perform that action at this time.
0 commit comments