mirror of https://github.com/golang/go.git
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 {
|
func lookupWithFake(fake fakeDNSServer, name string, typ dnsmessage.Type) error {
|
||||||
r := Resolver{PreferGo: true, Dial: fake.DialContext}
|
r := Resolver{PreferGo: true, Dial: fake.DialContext}
|
||||||
|
|
||||||
conf := resolvConf.dnsConfig.Load()
|
conf := getSystemDNSConfig()
|
||||||
|
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue