Skip to content

Commit b9ef548

Browse files
committed
Try to reproduce second resume #1588 (WIP)
1 parent 58bfd08 commit b9ef548

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kotlinx-coroutines-core/jvm/test/channels/ChannelAtomicCancelStressTest.kt

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import org.junit.*
1010
import org.junit.Assert.*
1111
import org.junit.runner.*
1212
import org.junit.runners.*
13-
import kotlin.random.Random
1413
import java.util.concurrent.atomic.*
14+
import kotlin.random.*
1515

1616
/**
1717
* Tests cancel atomicity for channel send & receive operations, including their select versions.
@@ -24,7 +24,8 @@ class ChannelAtomicCancelStressTest(private val kind: TestChannelKind) : TestBas
2424
fun params(): Collection<Array<Any>> = TestChannelKind.values().map { arrayOf<Any>(it) }
2525
}
2626

27-
private val TEST_DURATION = 1000L * stressTestMultiplier
27+
// todo: restore regular duration
28+
private val TEST_DURATION = 10_000L * stressTestMultiplier
2829

2930
private val dispatcher = newFixedThreadPoolContext(2, "ChannelAtomicCancelStressTest")
3031
private val scope = CoroutineScope(dispatcher)

0 commit comments

Comments
 (0)