From 34a84fad33404c66c3ee20cb63803214c42e991d Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Tue, 2 May 2023 20:35:49 +0200 Subject: [PATCH] update --- src/net/main_conf_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/main_conf_test.go b/src/net/main_conf_test.go index bc95d88941d..28a1cb8351c 100644 --- a/src/net/main_conf_test.go +++ b/src/net/main_conf_test.go @@ -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) } }