mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-30 01:04:05 +08:00
Update test_async.cpp
This commit is contained in:
parent
47fe6ef92a
commit
6a794b1dff
@ -331,7 +331,7 @@ TEST_CASE("wait_all", "[async]") {
|
|||||||
REQUIRE(elapsed >= delay);
|
REQUIRE(elapsed >= delay);
|
||||||
REQUIRE(elapsed < delay * 3);
|
REQUIRE(elapsed < delay * 3);
|
||||||
// wait enough time for all messages to be processed
|
// wait enough time for all messages to be processed
|
||||||
REQUIRE(as->wait_all(std::chrono::milliseconds(messages * delay)));
|
REQUIRE(as->wait_all(std::chrono::milliseconds(messages * delay + 250)));
|
||||||
REQUIRE(as->wait_all(std::chrono::milliseconds(-10))); // no more messages
|
REQUIRE(as->wait_all(std::chrono::milliseconds(-10))); // no more messages
|
||||||
REQUIRE(as->wait_all(std::chrono::milliseconds(0))); // no more messages
|
REQUIRE(as->wait_all(std::chrono::milliseconds(0))); // no more messages
|
||||||
REQUIRE(as->wait_all(std::chrono::milliseconds(10))); // no more messages
|
REQUIRE(as->wait_all(std::chrono::milliseconds(10))); // no more messages
|
||||||
|
Loading…
Reference in New Issue
Block a user