aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/truncated_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/forward/truncated_test.go')
-rw-r--r--plugin/forward/truncated_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/forward/truncated_test.go b/plugin/forward/truncated_test.go
index 4d8a0a25e..1c9e92a07 100644
--- a/plugin/forward/truncated_test.go
+++ b/plugin/forward/truncated_test.go
@@ -49,6 +49,9 @@ func TestLookupTruncated(t *testing.T) {
if !resp.Truncated {
t.Error("Expected to receive reply with TC bit set, but didn't")
}
+ if len(resp.Answer) != 1 {
+ t.Error("Expected to receive original reply, but answer is missing")
+ }
resp, err = f.Lookup(state, "example.org.", dns.TypeA)
if err != nil {
@@ -102,6 +105,9 @@ func TestForwardTruncated(t *testing.T) {
if !resp.Truncated {
t.Error("Expected to receive reply with TC bit set, but didn't")
}
+ if len(resp.Answer) != 1 {
+ t.Error("Expected to receive original reply, but answer is missing")
+ }
resp, err = f.Forward(state)
if err != nil {