mirror of
https://github.com/golang/go
synced 2024-11-18 09:04:49 -07:00
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 <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>
This commit is contained in:
parent
b71ca76065
commit
e1e88d636b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user