File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
commonTest/kotlin/undertest/kotest Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11package undertest.kotest
22
33import com.diffplug.selfie.coroutines.expectSelfie
4+ import io.kotest.common.ExperimentalKotest
45import io.kotest.core.spec.style.FunSpec
6+ import io.kotest.engine.concurrency.TestExecutionMode
57import kotlinx.coroutines.delay
68
9+ @OptIn(ExperimentalKotest ::class )
710class UT_ConcurrencyStressTest :
811 FunSpec ({
9- concurrency = 100
12+ testExecutionMode = TestExecutionMode . LimitedConcurrency ( 100 )
1013 for (d in 1 .. 1000 ) {
1114 val digit = d
1215 test(String .format(" test %04d" , digit)) {
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ import com.diffplug.selfie.kotest.SelfieExtension
44import io.kotest.core.config.AbstractProjectConfig
55
66object KotestProjectConfig : AbstractProjectConfig() {
7- override fun extensions () = listOf (SelfieExtension (this ))
7+ override val extensions = listOf (SelfieExtension (this ))
88}
You can’t perform that action at this time.
0 commit comments