Unverified Commit 8cc84b3e authored by Gabi Melman's avatar Gabi Melman Committed by GitHub

Update test_errors.cpp

parent 33dbacc2
......@@ -98,6 +98,7 @@ TEST_CASE("async_error_handler", "[errors]]")
TEST_CASE("async_error_handler2", "[errors]]")
{
prepare_logdir();
spdlog::init_thread_pool(128, 1);
std::string err_msg("This is async handler error message");
{
spdlog::details::os::create_dir(SPDLOG_FILENAME_T("test_logs"));
......@@ -111,7 +112,6 @@ TEST_CASE("async_error_handler2", "[errors]]")
});
logger->info("Hello failure");
}
spdlog::init_thread_pool(128, 1);
spdlog::details::os::sleep_for_millis(500);
REQUIRE(file_contents("test_logs/custom_err2.txt") == err_msg);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment