Skip to content

Commit

Permalink
check error in TestDNSCycleRecursorCheckAllFail before asserting resp…
Browse files Browse the repository at this point in the history
…onse to stop panic in CI. (hashicorp#20231)
  • Loading branch information
jmurret authored Jan 17, 2024
1 parent cb384ac commit bc4da5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent/dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ func TestDNSCycleRecursorCheckAllFail(t *testing.T) {
m.SetQuestion("google.com.", dns.TypeA)
// Agent request
client := new(dns.Client)
in, _, _ := client.Exchange(m, agent.DNSAddr())
in, _, err := client.Exchange(m, agent.DNSAddr())
require.NoError(t, err)
// Verify if we hit SERVFAIL from Consul
require.Equal(t, dns.RcodeServerFailure, in.Rcode)
})
Expand Down

0 comments on commit bc4da5f

Please sign in to comment.