mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
Increase sleep time on a test case to avoid spurious failures.
This commit is contained in:
parent
fd5562eebe
commit
fc1ce48dc7
@ -87,7 +87,7 @@ TEST_CASE("async periodic flush", "[async]")
|
||||
auto test_sink = std::static_pointer_cast<spdlog::sinks::test_sink_mt>(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();
|
||||
|
Loading…
Reference in New Issue
Block a user