From c5561373ff8315116c9cb23593bc8894f71e9892 Mon Sep 17 00:00:00 2001 From: apocelipes Date: Wed, 14 Aug 2024 03:49:33 +0000 Subject: [PATCH] crypto,hash: add t.Helper calls to test helpers Use t.Helper to make the reported failure lines more helpful. Change-Id: I6593924b3892b2441a197aee4e05f71ea236d426 GitHub-Last-Rev: 2e020ea85cf44c6cc0e90cb919eb0d7bb5a1c315 GitHub-Pull-Request: golang/go#68843 Reviewed-on: https://go-review.googlesource.com/c/go/+/604755 Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Reviewed-by: Carlos Amedee LUCI-TryBot-Result: Go LUCI --- tls_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tls_test.go b/tls_test.go index fc50406..a6c0336 100644 --- a/tls_test.go +++ b/tls_test.go @@ -163,6 +163,7 @@ func TestX509MixedKeyPair(t *testing.T) { } func newLocalListener(t testing.TB) net.Listener { + t.Helper() ln, err := net.Listen("tcp", "127.0.0.1:0") if err != nil { ln, err = net.Listen("tcp6", "[::1]:0")