Fixed dup_filter test

This commit is contained in:
gabime 2019-06-28 00:47:10 +03:00
parent c75549f6db
commit 71162ebdbb

View File

@ -28,6 +28,7 @@ TEST_CASE("dup_filter_test2", "[dup_filter_sink]")
for (int i = 0; i < 10; i++) for (int i = 0; i < 10; i++)
{ {
dup_sink.log(spdlog::details::log_msg{"test", spdlog::level::info, "message1"}); dup_sink.log(spdlog::details::log_msg{"test", spdlog::level::info, "message1"});
std::this_thread::sleep_for(std::chrono::milliseconds(5));
} }
REQUIRE(test_sink->msg_counter() == 10); REQUIRE(test_sink->msg_counter() == 10);