1
0
mirror of https://github.com/golang/go synced 2024-11-26 19:41:19 -07:00
This commit is contained in:
Mateusz Poliwczak 2023-05-02 20:35:49 +02:00
parent 910cc1ca39
commit 34a84fad33

View File

@ -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)
}
}