mirror of
https://github.com/gabime/spdlog.git
synced 2025-02-05 04:06:46 +08:00
Update test_async.cpp
This commit is contained in:
parent
23b1c4c079
commit
43812ddaf1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user