1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-04-30 12:23:53 +00:00

Fixed tests

This commit is contained in:
gabime 2023-09-01 17:01:12 +03:00
parent 4965d6ef68
commit 32b2fa8877

View File

@ -58,7 +58,7 @@ TEST_CASE("test_empty", "[ringbuffer_sink]")
auto sink = std::make_shared<spdlog::sinks::ringbuffer_sink_mt>(sink_size); auto sink = std::make_shared<spdlog::sinks::ringbuffer_sink_mt>(sink_size);
spdlog::logger l("logger", sink); spdlog::logger l("logger", sink);
sink->drain([&](std::string_view msg) { sink->drain([&](std::string_view) {
REQUIRE_FALSE(true); // should not be called since the sink is empty REQUIRE_FALSE(true); // should not be called since the sink is empty
}); });
} }
@ -74,7 +74,7 @@ TEST_CASE("test_empty_size", "[ringbuffer_sink]")
l.info("{}", i); l.info("{}", i);
} }
sink->drain([&](std::string_view msg) { sink->drain([&](std::string_view) {
REQUIRE_FALSE(true); // should not be called since the sink size is 0 REQUIRE_FALSE(true); // should not be called since the sink size is 0
}); });
} }