]> Cypherpunks repositories - gostls13.git/commitdiff
net: mark withTCPConnPair as test helper
authorTobias Klauser <tklauser@distanz.ch>
Mon, 5 Sep 2022 13:38:57 +0000 (15:38 +0200)
committerGopher Robot <gobot@golang.org>
Tue, 6 Sep 2022 16:59:58 +0000 (16:59 +0000)
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 <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>

src/net/net_test.go

index c297c51fb9ea603bb7dc6c1eecb20cd138c120e6..05c058a46c1ac2631e2bba7da06d821f4ed60959 100644 (file)
@@ -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)