mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 18:41:35 +08:00
Fixed race condition in tests
This commit is contained in:
parent
496c5fd145
commit
0e95bba098
@ -99,9 +99,9 @@ TEST_CASE("clone-logger", "[clone]") {
|
||||
}
|
||||
|
||||
TEST_CASE("clone async", "[clone]") {
|
||||
using spdlog::sinks::test_sink_st;
|
||||
using spdlog::sinks::test_sink_mt;
|
||||
spdlog::init_thread_pool(4, 1);
|
||||
auto test_sink = std::make_shared<test_sink_st>();
|
||||
auto test_sink = std::make_shared<test_sink_mt>();
|
||||
auto logger = std::make_shared<spdlog::async_logger>("orig", test_sink, spdlog::thread_pool());
|
||||
logger->set_pattern("%v");
|
||||
auto cloned = logger->clone("clone");
|
||||
|
Loading…
Reference in New Issue
Block a user