mirror of
https://github.com/golang/go
synced 2024-11-26 19:41:19 -07:00
update
This commit is contained in:
parent
910cc1ca39
commit
34a84fad33
@ -49,11 +49,11 @@ func TestForceCgoDNS(t *testing.T) {
|
||||
t.Fatalf("hostLookupOrder returned: %v, want cgo", order)
|
||||
}
|
||||
}
|
||||
|
||||
func TestForceGoDNS(t *testing.T) {
|
||||
defer forceGoDNS()()
|
||||
order, _ := systemConf().hostLookupOrder(nil, "go.dev")
|
||||
if !(order == hostLookupFiles || order == hostLookupFilesDNS ||
|
||||
order == hostLookupDNSFiles || order == hostLookupDNS) {
|
||||
if order == hostLookupCgo {
|
||||
t.Fatalf("hostLookupOrder returned: %v, want go resolver order", order)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user