]> Cypherpunks.ru repositories - gostls13.git/commitdiff
testing/slogtest: reword a confusing explanation
authorJonathan Amsterdam <jba@google.com>
Fri, 4 Aug 2023 18:39:48 +0000 (14:39 -0400)
committerJonathan Amsterdam <jba@google.com>
Mon, 7 Aug 2023 18:23:51 +0000 (18:23 +0000)
Updates #61758.

Change-Id: I4ce0359f676b6832e40203e1034ba1c4f6d2b2ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/516155
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Patrick Ohly <patrick.ohly@googlemail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/testing/slogtest/slogtest.go

index b16d1227dc5854c243e3fbad453db0c398432546..6f6fa902d5f28b25dbc41a8c8d3bab98d7fc3cf1 100644 (file)
@@ -163,7 +163,7 @@ func TestHandler(h slog.Handler, results func() []map[string]any) error {
                        },
                },
                {
-                       explanation: withSource("a Handler should not output groups for an empty Record"),
+                       explanation: withSource("a Handler should not output groups if there are no attributes"),
                        f: func(l *slog.Logger) {
                                l.With("a", "b").WithGroup("G").With("c", "d").WithGroup("H").Info("msg")
                        },