From 98731f727237395120cdd04453ccef546814b92f 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 aafc7c3902..f71703ebc1 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) }