Skip to content

Commit 5ee91c5

Browse files
committed
tests
1 parent 45f88c9 commit 5ee91c5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

jvm/undertest-kotest/src/commonTest/kotlin/undertest/kotest/UT_ConcurrencyStressTest.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
package undertest.kotest
22

33
import com.diffplug.selfie.coroutines.expectSelfie
4+
import io.kotest.common.ExperimentalKotest
45
import io.kotest.core.spec.style.FunSpec
6+
import io.kotest.engine.concurrency.TestExecutionMode
57
import kotlinx.coroutines.delay
68

9+
@OptIn(ExperimentalKotest::class)
710
class 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)) {

jvm/undertest-kotest/src/jvmTest/kotlin/kotest/KotestProjectConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import com.diffplug.selfie.kotest.SelfieExtension
44
import io.kotest.core.config.AbstractProjectConfig
55

66
object KotestProjectConfig : AbstractProjectConfig() {
7-
override fun extensions() = listOf(SelfieExtension(this))
7+
override val extensions = listOf(SelfieExtension(this))
88
}

0 commit comments

Comments
 (0)