Skip to content

Commit

Permalink
Update slogtest empty-group-record explanation
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Diniz <arthurbdiniz@gmail.com>
  • Loading branch information
arthurbdiniz committed Jan 17, 2025
1 parent 78b8af5 commit 8b50c57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func TestSlogHandler(t *testing.T) {
}); ok {
for _, err := range err.Unwrap() {
if !containsOne(err.Error(),
"a Handler should ignore a zero Record.Time", // zapr always writes a time field.
"a Handler should not output groups for an empty Record", // Relies on WithGroup and that always opens a group. Text may change, see https://go.dev/cl/516155
"a Handler should ignore a zero Record.Time", // zapr always writes a time field.
"a Handler should not output groups if there are no attributes", // Relies on WithGroup and that always opens a group.
) {
t.Errorf("Unexpected error: %v", err)
}
Expand Down

0 comments on commit 8b50c57

Please sign in to comment.