Fixes #58745
Change-Id: Id6666477b2c25f081d6f86047cea12bf8b3cb679
Reviewed-on: https://go-review.googlesource.com/c/go/+/471495
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Andy Pan <panjf2000@gmail.com>
"os"
. "os"
"path/filepath"
+ "runtime"
"strconv"
"strings"
"syscall"
func createSocketPair(t *testing.T, proto string) (client, server net.Conn) {
t.Helper()
+ if !nettest.TestableNetwork(proto) {
+ t.Skipf("%s does not support %q", runtime.GOOS, proto)
+ }
ln, err := nettest.NewLocalListener(proto)
if err != nil {