From 683dc0b2169be44042591644ba8b6179f02126f0 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 21 Jul 2018 00:35:22 +0300 Subject: [PATCH] Added async test to tests --- tests/test_async.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_async.cpp b/tests/test_async.cpp index c422f39a..e149d7fd 100644 --- a/tests/test_async.cpp +++ b/tests/test_async.cpp @@ -46,8 +46,7 @@ TEST_CASE("discard policy using factory ", "[async]") //auto test_sink = std::make_shared(); size_t queue_size = 2; size_t messages = 1024; - { - //auto tp = std::make_shared(queue_size, 1); + { auto logger = spdlog::create_async_nb("as2"); for (size_t i = 0; i < messages; i++) { @@ -55,9 +54,7 @@ TEST_CASE("discard policy using factory ", "[async]") } auto sink = std::static_pointer_cast(logger->sinks()[0]); REQUIRE(sink->msg_counter() < messages); - } - - + } } TEST_CASE("flush", "[async]")