diff --git a/tests/test_source_location.cpp b/tests/test_source_location.cpp index 4f84cf17..d810d340 100644 --- a/tests/test_source_location.cpp +++ b/tests/test_source_location.cpp @@ -11,10 +11,9 @@ TEST_CASE("test_source_location", "[source_location]") { auto oss_sink = std::make_shared(oss); spdlog::logger oss_logger("oss", oss_sink); oss_logger.set_pattern("%s:%# %v"); - oss_logger.info("Hello {}", "source location"); REQUIRE(oss.str() == - std::string("test_source_location.cpp:16 Hello source location") + default_eol); + std::string("test_source_location.cpp:14 Hello source location") + default_eol); } #endif