qol test comment fix
This commit is contained in:
@@ -288,7 +288,7 @@ test "filtering, buffering and automatic flushing"
|
|||||||
try std.testing.expect(contents.len == 0);
|
try std.testing.expect(contents.len == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// The file should include 'info=1' after flushing to disk.
|
// The file should include '[INFO] info=1\n' after flushing to disk.
|
||||||
try log.flush();
|
try log.flush();
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -299,7 +299,7 @@ test "filtering, buffering and automatic flushing"
|
|||||||
try log.state.writer.seekTo(0);
|
try log.state.writer.seekTo(0);
|
||||||
@memset(read_buf[0..], 0);
|
@memset(read_buf[0..], 0);
|
||||||
|
|
||||||
// The file should include 'warn=1' as warnings and errors automatically trigger a flush to disk.
|
// The file should include '[WARN] warn=1\n' as warnings and errors automatically trigger a flush to disk.
|
||||||
log.warn("warn={d}", .{1});
|
log.warn("warn={d}", .{1});
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -310,7 +310,7 @@ test "filtering, buffering and automatic flushing"
|
|||||||
try log.state.writer.seekTo(0);
|
try log.state.writer.seekTo(0);
|
||||||
@memset(read_buf[0..], 0);
|
@memset(read_buf[0..], 0);
|
||||||
|
|
||||||
// The file should include 'info=x...' as it's bigger than the allocated 256 buffer, forcing it to automatically drain on overflow.
|
// The file should include '[INFO] info=x...' as it's bigger than the allocated 256 buffer, forcing it to automatically drain on overflow.
|
||||||
log.info("info={s}", .{[_]u8{'x'} ** 300});
|
log.info("info={s}", .{[_]u8{'x'} ** 300});
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user