mirror of
https://github.com/status-im/consul.git
synced 2025-02-22 02:18:25 +00:00
check error in TestDNSCycleRecursorCheckAllFail before asserting response to stop panic in CI. (#20231)
This commit is contained in:
parent
cb384ac068
commit
bc4da5f5d6
@ -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)
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user