Skip to content

Commit

Permalink
Bumping up the default processTimeout for RunCoverage to 20 MINUTES
Browse files Browse the repository at this point in the history
  • Loading branch information
Rd4dev committed Jun 30, 2024
1 parent c6cf052 commit f967850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fun main(vararg args: String) {
ScriptBackgroundCoroutineDispatcher().use { scriptBgDispatcher ->
val processTimeout: Long = args.find { it.startsWith("processTimeout=") }
?.substringAfter("=")
?.toLongOrNull() ?: 5
?.toLongOrNull() ?: 20

val commandExecutor: CommandExecutor = CommandExecutorImpl(
scriptBgDispatcher, processTimeout = processTimeout, processTimeoutUnit = TimeUnit.MINUTES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class RunCoverageTest {
main(
"${tempFolder.root}",
"coverage/main/java/com/example/TwoSum.kt",
"format=markdown",
"format=Markdown",
"processTimeout=100"
)

Expand Down Expand Up @@ -193,7 +193,7 @@ class RunCoverageTest {
main(
"${tempFolder.root}",
"coverage/main/java/com/example/TwoSum.kt",
"format=html",
"format=Html",
"processTimeout=100"
)

Expand Down

0 comments on commit f967850

Please sign in to comment.