From 09f1546cba2998a8d89f4506c16ba3bff115071d Mon Sep 17 00:00:00 2001 From: Sean Liao Date: Tue, 27 May 2025 19:11:28 +0100 Subject: [PATCH] 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 --- src/log/slog/logger_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.50.0