From 43812ddaf12830bda84fbef9f791a8ee2a07526a Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Fri, 17 Jan 2025 23:17:35 +0200 Subject: [PATCH] Update test_async.cpp --- tests/test_async.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_async.cpp b/tests/test_async.cpp index db660329..6ff82ee3 100644 --- a/tests/test_async.cpp +++ b/tests/test_async.cpp @@ -329,7 +329,7 @@ TEST_CASE("wait_all", "[async]") { // should have waited approx 10ms before giving up auto elapsed = std::chrono::steady_clock::now() - start; REQUIRE(elapsed >= delay); - REQUIRE(elapsed < delay * 3); + REQUIRE(elapsed < delay * 6); // to pass tests in slow virtual machines // wait enough time for all messages to be processed REQUIRE(as->wait_all(messages * delay + 500ms)); REQUIRE(as->wait_all(-10ms)); // no more messages