Skip to content

Commit d3aef52

Browse files
committed
Reduce the number of time spent on lincheck tests in stress mode to be aligned with our stress test multiplier (25) instead of x100
Rationale: these contribute more than hour of stress tests time spent
1 parent 1c306c9 commit d3aef52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kotlinx-coroutines-core/jvm/test/AbstractLincheckTest.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ abstract class AbstractLincheckTest {
1313

1414
@Test
1515
fun modelCheckingTest() = ModelCheckingOptions()
16-
.iterations(if (isStressTest) 200 else 20)
17-
.invocationsPerIteration(if (isStressTest) 10_000 else 1_000)
16+
.iterations(20 * stressTestMultiplierSqrt)
17+
.invocationsPerIteration(1_000 * stressTestMultiplierSqrt)
1818
.commonConfiguration()
1919
.customize(isStressTest)
2020
.check(this::class)
2121

2222
@Test
2323
fun stressTest() = StressOptions()
24-
.iterations(if (isStressTest) 200 else 20)
25-
.invocationsPerIteration(if (isStressTest) 10_000 else 1_000)
24+
.iterations(20 * stressTestMultiplierSqrt)
25+
.invocationsPerIteration(1_000 * stressTestMultiplierSqrt)
2626
.commonConfiguration()
2727
.customize(isStressTest)
2828
.check(this::class)

0 commit comments

Comments
 (0)