Removes unnecessary clause in unit test check.

This commit is contained in:
James Phillips 2016-11-03 12:26:48 -07:00
parent 8f3f93cbf0
commit 1d35ff27ef
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 1 additions and 1 deletions

View File

@ -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 {