From e1e88d636badf57a66a573dd9f8c990df3573950 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 5 Sep 2022 15:38:57 +0200 Subject: [PATCH] net: mark withTCPConnPair as test helper Noticed while analyzing test failures on go.dev/cl/427714 that were pointing to withTCPConnPair instead of the failing tests. Change-Id: Ie2366962c2253e0c2a6546d3b7f43a96390bc7bb Reviewed-on: https://go-review.googlesource.com/c/go/+/428456 Run-TryBot: Tobias Klauser TryBot-Result: Gopher Robot Reviewed-by: Michael Knyszek Reviewed-by: Ian Lance Taylor Auto-Submit: Tobias Klauser --- src/net/net_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net/net_test.go b/src/net/net_test.go index c297c51fb9..05c058a46c 100644 --- a/src/net/net_test.go +++ b/src/net/net_test.go @@ -430,6 +430,7 @@ func TestZeroByteRead(t *testing.T) { // runs peer1 and peer2 concurrently. withTCPConnPair returns when // both have completed. func withTCPConnPair(t *testing.T, peer1, peer2 func(c *TCPConn) error) { + t.Helper() ln := newLocalListener(t, "tcp") defer ln.Close() errc := make(chan error, 2)