Skip to content

Commit

Permalink
does waiting help?
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed May 28, 2024
1 parent a98429f commit c5fecfe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/testthat/test-crew_monitor_local.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ crew_test("monitor workers", {
})
controller$start()
controller$launch(n = 1L)
crew::crew_retry(~length(x$workers()) > first, seconds_interval = 0.01)
Sys.sleep(1)
crew::crew_retry(~length(x$workers()) > first, seconds_interval = 1)
Sys.sleep(1)
expect_true(is.integer(x$workers()))
Sys.sleep(1)
expect_true(length(x$workers()) > first)
})

0 comments on commit c5fecfe

Please sign in to comment.