1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-04-29 03:53:54 +00:00

Update test_async.cpp

This commit is contained in:
Gabi Melman 2025-01-17 23:18:33 +02:00 committed by GitHub
parent 43812ddaf1
commit 128a9fcc49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 * 6); // to pass tests in slow virtual machines
REQUIRE(elapsed < delay * 6); // big tolerance, 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