From a8c56c2c7d9b503c4e5882886ec0f7991b4682a1 Mon Sep 17 00:00:00 2001 From: Jonathan Vannier Date: Mon, 25 Sep 2023 11:20:23 +0200 Subject: [PATCH] Fix non captured registration 2 not being properly tested for --- tests/test_registry.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_registry.cpp b/tests/test_registry.cpp index ac3b60f2..9d081ba7 100644 --- a/tests/test_registry.cpp +++ b/tests/test_registry.cpp @@ -129,6 +129,7 @@ TEST_CASE("add_on_registration_callback", "[registry]") { spdlog::drop_all_on_registration_callbacks(); auto non_captured_registration_logger2 = spdlog::create("non_captured_registration_logger2"); + spdlog::register_logger(non_captured_registration_logger2); // Check that only the automatically registered logged and the manually registered logger were captured REQUIRE(registered_logger_names == std::list({"captured_registration_logger1", "captured_registration_logger2"}));