Skip to content

Commit

Permalink
Ignore a flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhalanskyjb committed Dec 20, 2024
1 parent 2a9b88c commit 9a773f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kotlinx-coroutines-core/jvm/test/ThreadLocalsLeaksTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ import kotlin.coroutines.AbstractCoroutineContextElement
import kotlin.coroutines.Continuation
import kotlin.coroutines.ContinuationInterceptor
import kotlin.coroutines.CoroutineContext
import kotlin.test.Test
import kotlin.test.*

/*
* This is an adapted verion of test from #4296.
*
* qwwdfsad: the test relies on System.gc() actually collecting the garbage.
* If these tests flake on CI, first check that JDK/GC setup in not an issue.
*/
@Ignore
class ThreadLocalCustomContinuationInterceptorTest : TestBase() {

private class CustomContinuationInterceptor(private val delegate: ContinuationInterceptor) :
Expand All @@ -41,7 +42,6 @@ class ThreadLocalCustomContinuationInterceptorTest : TestBase() {
@Test(timeout = 20_000L)
fun testDefaultDispatcher() = ensureCoroutineContextGCed(Dispatchers.Default, suspend = true)


@Test(timeout = 20_000L)
fun testNonCoroutineDispatcher() = ensureCoroutineContextGCed(
CustomContinuationInterceptor(Dispatchers.Default),
Expand Down

0 comments on commit 9a773f1

Please sign in to comment.