mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-14 01:32:07 +08:00
Fixed ring buffer sink
This commit is contained in:
parent
1bfdff87ab
commit
88970085ba
@ -37,7 +37,7 @@ TEST_CASE("test_drain_raw", "[ringbuffer_sink]") {
|
||||
}
|
||||
|
||||
int counter = 0;
|
||||
sink->drain_raw([&](const spdlog::details::log_msg_buffer &buffer) {
|
||||
sink->drain_raw([&](const spdlog::details::async_log_msg &buffer) {
|
||||
REQUIRE(buffer.payload.data() == std::to_string(counter + 1));
|
||||
counter++;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user