Backport of check error in TestDNSCycleRecursorCheckAllFail before asserting response to stop panic in CI. into release/1.15.x (#20233)

check error in TestDNSCycleRecursorCheckAllFail before asserting response to stop panic in CI. (#20231)

Co-authored-by: John Murret <john.murret@hashicorp.com>
pull/20272/head
hc-github-team-consul-core 11 months ago committed by GitHub
parent ecc2f2a9f6
commit a7efdcadc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -513,7 +513,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…
Cancel
Save