From fc1ce48dc7b267b6abf0a94b0dc1997d51986e8b Mon Sep 17 00:00:00 2001 From: Francesco Biscani Date: Thu, 26 Nov 2020 09:45:39 +0100 Subject: [PATCH] Increase sleep time on a test case to avoid spurious failures. --- tests/test_async.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_async.cpp b/tests/test_async.cpp index 92b9587d..49b97ef2 100644 --- a/tests/test_async.cpp +++ b/tests/test_async.cpp @@ -87,7 +87,7 @@ TEST_CASE("async periodic flush", "[async]") auto test_sink = std::static_pointer_cast(logger->sinks()[0]); spdlog::flush_every(std::chrono::seconds(1)); - std::this_thread::sleep_for(std::chrono::milliseconds(1100)); + std::this_thread::sleep_for(std::chrono::milliseconds(1700)); REQUIRE(test_sink->flush_counter() == 1); spdlog::flush_every(std::chrono::seconds(0)); spdlog::drop_all();