mirror of
https://github.com/golang/go.git
synced 2025-10-19 11:03:18 +00:00
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>
This commit is contained in:
parent
de05282a2c
commit
09f1546cba
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ func TestCallDepthConnection(t *testing.T) {
|
|||
got := string(firstLine)
|
||||
|
||||
want := fmt.Sprintf(
|
||||
`source=:0 msg="logger_test.go:%d: %s"`,
|
||||
`msg="logger_test.go:%d: %s"`,
|
||||
line+i, tt.name,
|
||||
)
|
||||
if got != want {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue