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:
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 New Issue
Block a user