mirror of
https://github.com/golang/go
synced 2024-10-14 11:53:56 +00:00
fix panic inside TestIssueNoSuchHostExists
This commit is contained in:
parent
fee0ab8b5e
commit
7456fd16a7
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue