diff --git a/net/dns/resolver/doh_test.go b/net/dns/resolver/doh_test.go index 621ccd1fd..9d45d37a3 100644 --- a/net/dns/resolver/doh_test.go +++ b/net/dns/resolver/doh_test.go @@ -44,7 +44,9 @@ func TestDoH(t *testing.T) { t.Fatal("no known DoH") } - f := new(forwarder) + f := &forwarder{ + dohSem: make(chan struct{}, 10), + } for ip := range knownDoH { t.Run(ip.String(), func(t *testing.T) {