Skip to content

Commit

Permalink
bugfix: Wait longer to connect to build tools other than Bloop
Browse files Browse the repository at this point in the history
This seems to happen consistently in our Scala CLI tests, since it first needs to resolve a bunch of things.
  • Loading branch information
tgodzik committed Sep 29, 2023
1 parent 7c8f717 commit 26f1e68
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,13 @@ object BuildServerConnection {
params.setData(data)
params
}
// Block on the `build/initialize` request because it should respond instantly
// and we want to fail fast if the connection is not
// Block on the `build/initialize` request because it should respond instantly by Bloop
// and we want to fail fast if the connection is not made
val result =
if (serverName == SbtBuildTool.name) {
initializeResult.get(60, TimeUnit.SECONDS)
} else {
if (serverName == BloopServers.name) {
initializeResult.get(20, TimeUnit.SECONDS)
} else {
initializeResult.get(60, TimeUnit.SECONDS)
}

server.onBuildInitialized()
Expand Down

0 comments on commit 26f1e68

Please sign in to comment.