Commit c576bcba authored by Mikio Hara's avatar Mikio Hara

net: fix TestFirstFavoriteAddr failure on single IP stack kernel

Update #3610
Update #5267
Update #5707

R=golang-dev, bradfitz, dave
CC=golang-dev
https://golang.org/cl/13465043
parent 23f9751e
......@@ -177,6 +177,10 @@ var firstFavoriteAddrTests = []struct {
}
func TestFirstFavoriteAddr(t *testing.T) {
if !supportsIPv4 || !supportsIPv6 {
t.Skip("ipv4 or ipv6 is not supported")
}
for i, tt := range firstFavoriteAddrTests {
addr, err := firstFavoriteAddr(tt.filter, tt.ips, tt.inetaddr)
if err != tt.err {
......
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