Skip to content

Commit

Permalink
recv after process may take >0ms, eg. CRAN debian
Browse files Browse the repository at this point in the history
  • Loading branch information
mschubert committed Sep 29, 2023
1 parent 4ff59dc commit 7069bed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-7-ssh_proxy.r
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ test_that("simple forwarding works", {
p$connect(addr1, 500L)
w$connect(addr2, 500L)
expect_true(p$process_one())
expect_null(m$recv(0L)) # worker up
expect_null(m$recv(500L)) # worker up
m$send(5 + 2)
expect_true(p$process_one())
expect_true(w$process_one())
expect_true(p$process_one())
result = m$recv(0L)
result = m$recv(500L)
expect_equal(result, 7)

w$close()
Expand Down

0 comments on commit 7069bed

Please sign in to comment.