Skip to content

Commit

Permalink
increase timeouts for mac CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mschubert committed Jan 1, 2024
1 parent f4b9592 commit a39b67c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/test-7-ssh_proxy.r
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ test_that("using the proxy without pool and forward", {
addr = m$listen("tcp://127.0.0.1:*")
p = parallel::mcparallel(ssh_proxy(sub(".*:", "", addr)))

m$proxy_submit_cmd(list(n_jobs=1), 5000L)
m$proxy_submit_cmd(list(n_jobs=1), 10000L)
m$add_pending_workers(1L)
expect_null(m$recv(1000L)) # worker 1 up
expect_null(m$recv(2000L)) # worker 1 up
m$send(5 + 2)
expect_equal(m$recv(500L), 7) # collect results

Expand All @@ -86,9 +86,9 @@ test_that("using the proxy without pool and forward, 2 workers", {
addr = m$listen("tcp://127.0.0.1:*")
p = parallel::mcparallel(ssh_proxy(sub(".*:", "", addr)))

m$proxy_submit_cmd(list(n_jobs=2), 5000L)
m$proxy_submit_cmd(list(n_jobs=2), 10000L)
m$add_pending_workers(2L)
expect_null(m$recv(1000L)) # worker 1 up
expect_null(m$recv(2000L)) # worker 1 up
m$send({ Sys.sleep(0.5); 5 + 2 })
expect_null(m$recv(500L)) # worker 2 up
m$send({ Sys.sleep(0.5); 3 + 1 })
Expand Down

0 comments on commit a39b67c

Please sign in to comment.