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:
parent
23f9751e83
commit
c576bcbad5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user