From: Tobias Klauser Date: Mon, 5 Sep 2022 13:38:57 +0000 (+0200) Subject: net: mark withTCPConnPair as test helper X-Git-Tag: go1.20rc1~1190 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e1e88d636badf57a66a573dd9f8c990df3573950;p=gostls13.git 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 --- 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)