Skip to content

Commit

Permalink
dnsforward: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Dec 6, 2023
1 parent 9751bf5 commit 3a7b8fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/dnsforward/upstreams_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,12 @@ func TestUpstreamConfigValidator_Check_once(t *testing.T) {

reqCh := make(chan signal)
hdlr := dns.HandlerFunc(func(w dns.ResponseWriter, m *dns.Msg) {
pt := testutil.PanicT{}

err := w.WriteMsg(new(dns.Msg).SetReply(m))
require.NoError(testutil.PanicT{}, err)
require.NoError(pt, err)

testutil.RequireSend(testutil.PanicT{}, reqCh, signal{}, testTimeout)
testutil.RequireSend(pt, reqCh, signal{}, testTimeout)
})

addr := (&url.URL{
Expand Down

0 comments on commit 3a7b8fd

Please sign in to comment.