fix panic inside TestIssueNoSuchHostExists

This commit is contained in:
Mateusz Poliwczak 2022-11-16 12:19:35 +01:00
parent fee0ab8b5e
commit 7456fd16a7

View file

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