Skip to content

Commit

Permalink
Disable timeouts for Kotlin/JS tests (#926)
Browse files Browse the repository at this point in the history
Some tests added in #923 seem to time out on Kotlin/JS. To avoid
problems like this in the future, this commit disables test timeouts on
Kotlin/JS completely.
  • Loading branch information
lukellmann authored Mar 16, 2024
1 parent d1651a7 commit 4865e25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
10 changes: 9 additions & 1 deletion buildSrc/src/main/kotlin/kord-multiplatform-module.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ kotlin {

jvm()
js {
nodejs()
nodejs {
testTask {
useMocha {
// disable timeouts, some tests are too slow for default 2-second timeout:
// https://mochajs.org/#-timeout-ms-t-ms
timeout = "0"
}
}
}
useCommonJs()
}
jvmToolchain(Jvm.target)
Expand Down
10 changes: 0 additions & 10 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@ plugins {
}

kotlin {
js {
nodejs {
testTask {
useMocha {
timeout = "10000" // KordEventDropTest is too slow for default 2 seconds timeout
}
}
}
}

sourceSets {
commonMain {
dependencies {
Expand Down

0 comments on commit 4865e25

Please sign in to comment.