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