Skip to content

Commit

Permalink
dnsforward: imp test
Browse files Browse the repository at this point in the history
  • Loading branch information
ainar-g committed Oct 2, 2024
1 parent 16ecebb commit e3cccc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/dnsforward/dnsforward_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,11 @@ func TestSafeSearch(t *testing.T) {
req := createTestMessage(tc.host)

var reply *dns.Msg
reply, _, err = client.Exchange(req, addr)
require.Eventually(t, func() (ok bool) {
reply, _, err = client.Exchange(req, addr)

return err == nil
}, testTimeout*10, testTimeout)
require.NoErrorf(t, err, "couldn't talk to server %s: %s", addr, err)

if tc.wantCNAME != "" {
Expand Down

0 comments on commit e3cccc0

Please sign in to comment.