Skip to content

Commit 4865e25

Browse files
authored
Disable timeouts for Kotlin/JS tests (#926)
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.
1 parent d1651a7 commit 4865e25

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

buildSrc/src/main/kotlin/kord-multiplatform-module.gradle.kts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,15 @@ kotlin {
2727

2828
jvm()
2929
js {
30-
nodejs()
30+
nodejs {
31+
testTask {
32+
useMocha {
33+
// disable timeouts, some tests are too slow for default 2-second timeout:
34+
// https://mochajs.org/#-timeout-ms-t-ms
35+
timeout = "0"
36+
}
37+
}
38+
}
3139
useCommonJs()
3240
}
3341
jvmToolchain(Jvm.target)

core/build.gradle.kts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ plugins {
44
}
55

66
kotlin {
7-
js {
8-
nodejs {
9-
testTask {
10-
useMocha {
11-
timeout = "10000" // KordEventDropTest is too slow for default 2 seconds timeout
12-
}
13-
}
14-
}
15-
}
16-
177
sourceSets {
188
commonMain {
199
dependencies {

0 commit comments

Comments
 (0)