diff --git a/command/agent/dns_test.go b/command/agent/dns_test.go index 64c688613..be9c56c2a 100644 --- a/command/agent/dns_test.go +++ b/command/agent/dns_test.go @@ -1863,7 +1863,7 @@ func TestDNS_Recurse_Truncation(t *testing.T) { c := new(dns.Client) addr, _ := srv.agent.config.ClientListener("", srv.agent.config.Ports.DNS) in, _, err := c.Exchange(m, addr.String()) - if err == nil || err != dns.ErrTruncated { + if err != dns.ErrTruncated { t.Fatalf("err: %v", err) } if in.Truncated != true {