Skip to content

Commit

Permalink
increase WSL timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Mar 14, 2024
1 parent 40d8a02 commit 75d9826
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class MirrordBinaryManager {
init {
version = if (wslDistribution != null) {
val command = wslDistribution.getWslPath(command)
val output = wslDistribution.executeOnWsl(1000, command, "--version")
val output = wslDistribution.executeOnWsl(5000, command, "--version")
output.stdout.split(' ')[1].trim()
} else {
val child = Runtime.getRuntime().exec(arrayOf(command, "--version"))
Expand Down Expand Up @@ -271,7 +271,7 @@ class MirrordBinaryManager {
}
child.inputReader().readLine().trim()
} else {
val output = wslDistribution.executeOnWsl(1000, "which", "mirrord")
val output = wslDistribution.executeOnWsl(5000, "which", "mirrord")
if (output.exitCode != 0) {
throw RuntimeException("`which` failed with code ${output.exitCode}")
}
Expand Down

0 comments on commit 75d9826

Please sign in to comment.