aboutsummaryrefslogtreecommitdiff
path: root/request/request_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'request/request_test.go')
-rw-r--r--request/request_test.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/request/request_test.go b/request/request_test.go
index 5e814f76e..4411c6a82 100644
--- a/request/request_test.go
+++ b/request/request_test.go
@@ -123,10 +123,6 @@ func TestRequestScrubExtraEdns0(t *testing.T) {
if reply.Truncated {
t.Errorf("Want scrub to not set truncated bit")
}
- opt := reply.Extra[len(reply.Extra)-1]
- if opt.Header().Rrtype != dns.TypeOPT {
- t.Errorf("Last RR must be OPT record")
- }
}
func TestRequestScrubExtraRegression(t *testing.T) {
@@ -153,10 +149,6 @@ func TestRequestScrubExtraRegression(t *testing.T) {
if reply.Truncated {
t.Errorf("Want scrub to not set truncated bit")
}
- opt := reply.Extra[len(reply.Extra)-1]
- if opt.Header().Rrtype != dns.TypeOPT {
- t.Errorf("Last RR must be OPT record")
- }
}
func TestTruncation(t *testing.T) {