Update test_errors.cpp

pull/2143/head
Gabi Melman 4 years ago committed by GitHub
parent 33dbacc27d
commit 8cc84b3ed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -98,6 +98,7 @@ TEST_CASE("async_error_handler", "[errors]]")
TEST_CASE("async_error_handler2", "[errors]]") TEST_CASE("async_error_handler2", "[errors]]")
{ {
prepare_logdir(); prepare_logdir();
spdlog::init_thread_pool(128, 1);
std::string err_msg("This is async handler error message"); std::string err_msg("This is async handler error message");
{ {
spdlog::details::os::create_dir(SPDLOG_FILENAME_T("test_logs")); spdlog::details::os::create_dir(SPDLOG_FILENAME_T("test_logs"));
@ -111,7 +112,6 @@ TEST_CASE("async_error_handler2", "[errors]]")
}); });
logger->info("Hello failure"); logger->info("Hello failure");
} }
spdlog::details::os::sleep_for_millis(500);
spdlog::init_thread_pool(128, 1);
REQUIRE(file_contents("test_logs/custom_err2.txt") == err_msg); REQUIRE(file_contents("test_logs/custom_err2.txt") == err_msg);
} }

Loading…
Cancel
Save