From 96c9a62bfde6b448a91e5562ff1ed354ea7af4a1 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 1 Nov 2024 12:32:39 +0200 Subject: [PATCH] Fixed race condition in tests --- tests/test_misc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_misc.cpp b/tests/test_misc.cpp index 367eeb75..fb8c9014 100644 --- a/tests/test_misc.cpp +++ b/tests/test_misc.cpp @@ -105,9 +105,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(); + auto test_sink = std::make_shared(); auto logger = std::make_shared("orig", test_sink, spdlog::thread_pool()); logger->set_pattern("%v"); auto cloned = logger->clone("clone");