Commit 285e7860 authored by Mikio Hara's avatar Mikio Hara

net: fix TestDialAddrError

Fixes #15291.

Change-Id: I563140c2acd37d4989a940488b217414cf73f6c2
Reviewed-on: https://go-review.googlesource.com/22077Reviewed-by: default avatarAlex Brainman <alex.brainman@gmail.com>
parent ed7cd254
...@@ -211,6 +211,9 @@ func TestDialAddrError(t *testing.T) { ...@@ -211,6 +211,9 @@ func TestDialAddrError(t *testing.T) {
case "nacl", "plan9": case "nacl", "plan9":
t.Skipf("not supported on %s", runtime.GOOS) t.Skipf("not supported on %s", runtime.GOOS)
} }
if !supportsIPv4 || !supportsIPv6 {
t.Skip("both IPv4 and IPv6 are required")
}
for _, tt := range []struct { for _, tt := range []struct {
network string network string
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment