1
0
mirror of https://github.com/golang/go synced 2024-11-17 06:04:47 -07:00

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
This commit is contained in:
Mikio Hara 2013-09-02 16:44:51 +09:00
parent 23f9751e83
commit c576bcbad5

View File

@ -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 {