1
0
mirror of https://github.com/golang/go synced 2024-11-27 02:31:18 -07:00

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