summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/miekg/dns/dns_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/miekg/dns/dns_test.go')
-rw-r--r--vendor/github.com/miekg/dns/dns_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/github.com/miekg/dns/dns_test.go b/vendor/github.com/miekg/dns/dns_test.go
index dbfe25328..5568c316c 100644
--- a/vendor/github.com/miekg/dns/dns_test.go
+++ b/vendor/github.com/miekg/dns/dns_test.go
@@ -154,6 +154,9 @@ func TestPack(t *testing.T) {
}
x.Answer = make([]RR, 1)
x.Answer[0], err = NewRR(rr[0])
+ if err != nil {
+ t.Fatal(err)
+ }
if _, err := x.Pack(); err == nil {
t.Error("packing should fail")
}