This commit is contained in:
gabime 2018-05-20 18:01:47 +03:00
parent 6a93f98a1f
commit b94b9a8341
3 changed files with 21 additions and 27 deletions

View File

@ -53,7 +53,6 @@ TEST_CASE("discard policy ", "[async]")
REQUIRE(test_sink->flushed_msg_counter() < messages);
}
TEST_CASE("flush", "[async]")
{
auto test_sink = std::make_shared<spdlog::sinks::test_sink_mt>();
@ -72,9 +71,7 @@ TEST_CASE("flush", "[async]")
REQUIRE(test_sink->msg_counter() == messages);
REQUIRE(test_sink->flushed_msg_counter() == messages);
REQUIRE(test_sink->flushed_msg_counter() == messages);
}
TEST_CASE("multi threads", "[async]")
@ -107,7 +104,6 @@ TEST_CASE("multi threads", "[async]")
REQUIRE(test_sink->flushed_msg_counter() == messages * n_threads);
}
TEST_CASE("to_file", "[async]")
{
@ -136,5 +132,3 @@ TEST_CASE("to_file", "[async]")
spdlog::drop("as");
REQUIRE(count_lines("logs/async_test.log") == messages * n_threads);
}