From: Sean Liao Date: Tue, 27 May 2025 18:11:28 +0000 (+0100) Subject: log/slog: fix longtests with empty source X-Git-Tag: go1.25rc1~61 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=09f1546cba2998a8d89f4506c16ba3bff115071d;p=gostls13.git 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 TryBot-Bypass: Michael Knyszek Reviewed-by: Michael Knyszek Reviewed-by: Dmitri Shuralyov --- diff --git a/src/log/slog/logger_test.go b/src/log/slog/logger_test.go index 63595504fe..bf645d9c4c 100644 --- a/src/log/slog/logger_test.go +++ b/src/log/slog/logger_test.go @@ -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 {