From 7456fd16a7ff4845b4ca305d4107d29f1d6f7b3e Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Wed, 16 Nov 2022 12:19:35 +0100 Subject: [PATCH] fix panic inside TestIssueNoSuchHostExists --- src/net/dnsclient_unix_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/dnsclient_unix_test.go b/src/net/dnsclient_unix_test.go index 2a15845ea1..f71c1fe67c 100644 --- a/src/net/dnsclient_unix_test.go +++ b/src/net/dnsclient_unix_test.go @@ -1440,7 +1440,7 @@ func TestDNSGoroutineRace(t *testing.T) { func lookupWithFake(fake fakeDNSServer, name string, typ dnsmessage.Type) error { r := Resolver{PreferGo: true, Dial: fake.DialContext} - conf := resolvConf.dnsConfig.Load() + conf := getSystemDNSConfig() ctx, cancel := context.WithCancel(context.Background()) defer cancel()