mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-24 09:31:34 +08:00
Fixed issue #842 in tests
This commit is contained in:
parent
ca8accbaa8
commit
5d34d21f40
@ -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<int> 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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user