Skip to content

Commit

Permalink
fix panic inside TestIssueNoSuchHostExists
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz834 committed Nov 16, 2022
1 parent 678cd71 commit 0f1a592
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/net/dnsclient_unix_test.go
Expand Up @@ -1445,9 +1445,7 @@ func TestDNSGoroutineRace(t *testing.T) {
func lookupWithFake(fake fakeDNSServer, name string, typ dnsmessage.Type) error {
r := Resolver{PreferGo: true, Dial: fake.DialContext}

resolvConf.mu.RLock()
conf := resolvConf.dnsConfig
resolvConf.mu.RUnlock()
conf := getSystemDNSConfig()

ctx, cancel := context.WithCancel(context.Background())
defer cancel()
Expand Down

0 comments on commit 0f1a592

Please sign in to comment.