Skip to content

Commit 09f1546

Browse files
seankhliaogopherbot
authored andcommitted
log/slog: fix longtests with empty source
Tests broken by CL 674875 Updates #73808 Change-Id: I7ad93e4a8ba1977d136f99b9d4963fa8a9c159ff Reviewed-on: https://go-review.googlesource.com/c/go/+/676595 Auto-Submit: Michael Knyszek <mknyszek@google.com> TryBot-Bypass: Michael Knyszek <mknyszek@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
1 parent de05282 commit 09f1546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/log/slog/logger_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ func TestCallDepthConnection(t *testing.T) {
315315
got := string(firstLine)
316316

317317
want := fmt.Sprintf(
318-
`source=:0 msg="logger_test.go:%d: %s"`,
318+
`msg="logger_test.go:%d: %s"`,
319319
line+i, tt.name,
320320
)
321321
if got != want {

0 commit comments

Comments
 (0)