From 7069bedea4d0d81ccbf42fb3d87f76fa71d49f09 Mon Sep 17 00:00:00 2001 From: mschubert Date: Fri, 29 Sep 2023 14:43:15 +0200 Subject: [PATCH] recv after process may take >0ms, eg. CRAN debian --- tests/testthat/test-7-ssh_proxy.r | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test-7-ssh_proxy.r b/tests/testthat/test-7-ssh_proxy.r index e1b0cd7..b595ff7 100644 --- a/tests/testthat/test-7-ssh_proxy.r +++ b/tests/testthat/test-7-ssh_proxy.r @@ -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()