Skip to content

Commit

Permalink
Fixed race condition in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Nov 26, 2024
1 parent 496c5fd commit 0e95bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 0e95bba

Please sign in to comment.