From: Mikio Hara Date: Thu, 14 Apr 2016 05:53:12 +0000 (+0900) Subject: net: fix TestDialAddrError X-Git-Tag: go1.7beta1~690 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=285e78609f4fd85948d056f581d3443d5f9b230a;p=gostls13.git net: fix TestDialAddrError Fixes #15291. Change-Id: I563140c2acd37d4989a940488b217414cf73f6c2 Reviewed-on: https://go-review.googlesource.com/22077 Reviewed-by: Alex Brainman --- diff --git a/src/net/error_test.go b/src/net/error_test.go index 40f235c924..31cc0e5055 100644 --- a/src/net/error_test.go +++ b/src/net/error_test.go @@ -211,6 +211,9 @@ func TestDialAddrError(t *testing.T) { case "nacl", "plan9": t.Skipf("not supported on %s", runtime.GOOS) } + if !supportsIPv4 || !supportsIPv6 { + t.Skip("both IPv4 and IPv6 are required") + } for _, tt := range []struct { network string