mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Fixed tests
This commit is contained in:
parent
4965d6ef68
commit
32b2fa8877
@ -58,7 +58,7 @@ TEST_CASE("test_empty", "[ringbuffer_sink]")
|
||||
auto sink = std::make_shared<spdlog::sinks::ringbuffer_sink_mt>(sink_size);
|
||||
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
|
||||
});
|
||||
}
|
||||
@ -74,7 +74,7 @@ TEST_CASE("test_empty_size", "[ringbuffer_sink]")
|
||||
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
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user