Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Sep 9, 2024
1 parent f433a66 commit efb1f9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions tests/local/test-cleanup.R
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
crew_test("workers signal themselves to exit when connection breaks", {
skip_if_not_installed("mirai", minimum_version = "0.11.3.9000")
skip_if_not_installed("nanonext", minimum_version = "0.11.0.9000")
x <- crew_controller_local(workers = 1L)
x$start()
x$push(nanonext::until(nanonext::cv(), 600 * 1e3))
Sys.sleep(2)
x$scale()
Sys.sleep(2)
dispatcher <- ps::ps_handle(pid = x$client$dispatcher)
crew_terminate_process(x$client$dispatcher)
dispatcher <- x$client$dispatcher
crew_terminate_process(ps::ps_pid(dispatcher))
crew_retry(
~!ps::ps_is_running(dispatcher),
seconds_interval = 0.5,
Expand Down
2 changes: 1 addition & 1 deletion tests/local/test-crew_clean.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ crew_test("crew_clean()", {
crew_test_sleep()
})
x$start()
handle_dispatcher <- ps::ps_handle(x$client$dispatcher)
handle_dispatcher <- x$client$dispatcher
expect_true(ps::ps_is_running(handle_dispatcher))
x$launch(n = 1L)
handle_worker <- x$launcher$workers$handle[[1]]
Expand Down

0 comments on commit efb1f9b

Please sign in to comment.