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 f024cf8 commit 0f2a1aa
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 0f2a1aa

Please sign in to comment.