From 5d34d21f409cc69f2b08351b8d6874539ad58503 Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 26 Sep 2018 14:45:57 +0300 Subject: [PATCH] Fixed issue #842 in tests --- tests/test_mpmc_q.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_mpmc_q.cpp b/tests/test_mpmc_q.cpp index 7c56496d..19a188d8 100644 --- a/tests/test_mpmc_q.cpp +++ b/tests/test_mpmc_q.cpp @@ -29,7 +29,7 @@ TEST_CASE("dequeue-empty-wait", "[mpmc_blocking_q]") size_t q_size = 100; milliseconds wait_ms(250); - milliseconds tolerance_wait(100); + milliseconds tolerance_wait(50); spdlog::details::mpmc_blocking_queue q(q_size); int popped_item; @@ -40,7 +40,7 @@ TEST_CASE("dequeue-empty-wait", "[mpmc_blocking_q]") REQUIRE(rv == false); INFO("Delta " << delta_ms.count() << " millis"); - REQUIRE(delta_ms >= wait_ms); + REQUIRE(delta_ms >= wait_ms - tolerance_wait); REQUIRE(delta_ms <= wait_ms + tolerance_wait); }