mirror of https://github.com/hashicorp/consul
Backport of check error in TestDNSCycleRecursorCheckAllFail before asserting response to stop panic in CI. into release/1.17.x (#20235)
* no-op commit due to failed cherry-picking * check error in TestDNSCycleRecursorCheckAllFail before asserting response to stop panic in CI. (#20231) --------- Co-authored-by: temp <temp@hashicorp.com> Co-authored-by: John Murret <john.murret@hashicorp.com>pull/20265/head sdk/v0.15.1
parent
ecb6ed02d6
commit
0e7c7e24ed
|
@ -513,7 +513,8 @@ func TestDNSCycleRecursorCheckAllFail(t *testing.T) {
|
||||||
m.SetQuestion("google.com.", dns.TypeA)
|
m.SetQuestion("google.com.", dns.TypeA)
|
||||||
// Agent request
|
// Agent request
|
||||||
client := new(dns.Client)
|
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
|
// Verify if we hit SERVFAIL from Consul
|
||||||
require.Equal(t, dns.RcodeServerFailure, in.Rcode)
|
require.Equal(t, dns.RcodeServerFailure, in.Rcode)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue