Skip to content

Commit

Permalink
Update RunModule.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi authored Jul 22, 2024
1 parent 4e94cc2 commit 38bfbc5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scalalib/src/mill/scalalib/RunModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,13 @@ trait RunModule extends WithZincWorker {
runUseArgsFile = runUseArgsFile(),
backgroundOutputs = backgroundOutputs(T.dest)
)(args().value: _*)(T.ctx())
println("runBackgroundTask SLEEPING 10000")

// Make sure to sleep a bit in the Mill test suite to allow the servers we
// start time to initialize before we proceed with the following commands
if (T.env.contains("MILL_TEST_SUITE")) Thread.sleep(5000)
if (T.env.contains("MILL_TEST_SUITE")) {
println("runBackgroundTask SLEEPING 10000")
Thread.sleep(5000)
}
}

/**
Expand Down

0 comments on commit 38bfbc5

Please sign in to comment.