Skip to content

Commit

Permalink
Increase --watch integration test timeouts & enable --offline mod…
Browse files Browse the repository at this point in the history
…e in them (#2494)
  • Loading branch information
Gedochao authored Oct 25, 2023
1 parent 72cca0b commit 8e04d08
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class BloopTests extends ScalaCliSuite {

test("Restart Bloop server while watching") {
TestUtil.withThreadPool("bloop-restart-test", 2) { pool =>
val timeout = Duration("20 seconds")
val timeout = Duration("90 seconds")
val ec = ExecutionContext.fromExecutorService(pool)

def content(message: String) =
Expand All @@ -150,7 +150,7 @@ class BloopTests extends ScalaCliSuite {
sourcePath -> content("Hello")
)
inputs.fromRoot { root =>
val proc = os.proc(TestUtil.cli, "run", "-w", ".")
val proc = os.proc(TestUtil.cli, "run", "--power", "--offline", "-w", ".")
.spawn(cwd = root)
val firstLine = TestUtil.readLine(proc.stdout, ec, timeout)
expect(firstLine == "Hello")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,21 @@ class RunTestsDefault extends RunTestDefinitions(scalaVersionOpt = None) {

publishLib()

val proc = os.proc(TestUtil.cli, "run", "app", "-w", "-r", testRepo.toNIO.toUri.toASCIIString)
val proc = os.proc(
TestUtil.cli,
"--power",
"run",
"--offline",
"app",
"-w",
"-r",
testRepo.toNIO.toUri.toASCIIString
)
.spawn(cwd = root)

try
TestUtil.withThreadPool("watch-artifacts-test", 2) { pool =>
val timeout = Duration("20 seconds")
val timeout = Duration("90 seconds")
val ec = ExecutionContext.fromExecutorService(pool)

val output = TestUtil.readLine(proc.stdout, ec, timeout)
Expand Down

0 comments on commit 8e04d08

Please sign in to comment.