Gleb Minaev
03/10/2023, 9:06 AMobject KotestProjectConfig : AbstractProjectConfig() {
override val timeout: Duration = 5.seconds
override val parallelism: Int = 4
}
and put it in the root package. But when I run the tests, there was a test that did not finish even after 50 minutes of execution (usually the tests take no more than a 1-2 seconds to either success or fail). I know where the bug is, but I'm wondering how to make Kotest fail tests that run long enough.
What am I doing wrong? How to specify the timeout?Adam S
03/10/2023, 9:36 AM// build.gradle.kts
import java.time.Duration
tasks.withType<Test>().configureEach {
timeout.set(Duration.ofMinutes(30))
}
Gleb Minaev
03/10/2023, 10:15 AMjavaTest
, you'll see that the first test completes instantly (a lot less than 1 second), whereas the second one takes forever to complete. But you can also see configuration object with specified timeout. But the timeout will be violated for some reason.
Maybe, now someone has an idea of what is wrong?sam
03/10/2023, 3:31 PMGleb Minaev
03/10/2023, 3:35 PMGleb Minaev
03/10/2023, 3:57 PMsam
03/10/2023, 5:00 PM