Skip to content

Commit 2633621

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 fd5a58b commit 2633621

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright 2016-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33
*/
44
package kotlinx.coroutines
55

@@ -16,16 +16,16 @@ abstract class AbstractLincheckTest {
1616

1717
@Test
1818
fun modelCheckingTest() = ModelCheckingOptions()
19-
.iterations(if (isStressTest) 200 else 20)
20-
.invocationsPerIteration(if (isStressTest) 10_000 else 1_000)
19+
.iterations(20 * stressTestMultiplierSqrt)
20+
.invocationsPerIteration(1_000 * stressTestMultiplierSqrt)
2121
.commonConfiguration()
2222
.customize(isStressTest)
2323
.check(this::class)
2424

2525
@Test
2626
fun stressTest() = StressOptions()
27-
.iterations(if (isStressTest) 200 else 20)
28-
.invocationsPerIteration(if (isStressTest) 10_000 else 1_000)
27+
.iterations(20 * stressTestMultiplierSqrt)
28+
.invocationsPerIteration(1_000 * stressTestMultiplierSqrt)
2929
.commonConfiguration()
3030
.customize(isStressTest)
3131
.check(this::class)

0 commit comments

Comments
 (0)