[Gradle, JS] Fix timeout for debug
#KT-37035 fixed
This commit is contained in:
+9
-2
@@ -90,7 +90,11 @@ class KotlinMocha(override val compilation: KotlinJsCompilation) :
|
||||
add(adapter.canonicalPath)
|
||||
addAll(cliArgs.toList())
|
||||
addAll(cliArg("--reporter", "kotlin-test-js-runner/mocha-kotlin-reporter.js"))
|
||||
addAll(cliArg("--timeout", timeout))
|
||||
if (debug) {
|
||||
add(NO_TIMEOUT_ARG)
|
||||
} else {
|
||||
addAll(cliArg(TIMEOUT_ARG, timeout))
|
||||
}
|
||||
}
|
||||
|
||||
return TCServiceMessagesTestExecutionSpec(
|
||||
@@ -135,4 +139,7 @@ class KotlinMocha(override val compilation: KotlinJsCompilation) :
|
||||
|
||||
private const val DEFAULT_TIMEOUT = "2s"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private const val TIMEOUT_ARG = "--timeout"
|
||||
private const val NO_TIMEOUT_ARG = "--no-timeout"
|
||||
Reference in New Issue
Block a user