Skip to content

Commit

Permalink
bugfix: Try to fix Mill flaky test
Browse files Browse the repository at this point in the history
My guess is that the test failed because it takes a while for the build server to connect. Let's see if this helps.
  • Loading branch information
tgodzik committed Sep 22, 2023
1 parent b511ce9 commit d419f7f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package tests.mill

import java.util.concurrent.TimeUnit

import scala.concurrent.duration.Duration

import scala.meta.internal.metals.MetalsEnrichments._
import scala.meta.internal.metals.ServerCommands
import scala.meta.internal.metals.{BuildInfo => V}

Expand Down Expand Up @@ -40,6 +43,8 @@ class MillServerCodeLensSuite
_ <- server.initialize()
_ <- server.initialized()
_ <- server.executeCommand(ServerCommands.GenerateBspConfig)
_ <- server.server.indexingPromise.future
.withTimeout(2, TimeUnit.MINUTES)
_ <- server.didOpen("MillMinimal/src/Main.scala")
_ <- server.didSave("MillMinimal/src/Main.scala")(identity)
_ = assertNoDiagnostics()
Expand Down

0 comments on commit d419f7f

Please sign in to comment.