Fixes unit test fail due to expected truncated message.

This commit is contained in:
James Phillips 2015-11-12 18:16:44 -08:00
parent 4836080a20
commit 67408fe477
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}