Skip to content

Commit

Permalink
test: use error wrapping in TestRetries
Browse files Browse the repository at this point in the history
  • Loading branch information
gnuletik committed Oct 22, 2024
1 parent c643022 commit e58d8da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func TestRetries(t *testing.T) {

// Test that error is returned on max retries, should conn refused 5 times then err
_, err := client.QueryMultiple("scanme.sh", []uint16{dns.TypeA})
require.True(t, err == ErrRetriesExceeded)
require.ErrorIs(t, err, ErrRetriesExceeded)

msg := &dns.Msg{}
msg.Id = dns.Id()
Expand Down

0 comments on commit e58d8da

Please sign in to comment.