From 67408fe477cf4e4d80c31dca0135e018c03ddac2 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Thu, 12 Nov 2015 18:16:44 -0800 Subject: [PATCH] Fixes unit test fail due to expected truncated message. --- command/agent/dns_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }