aboutsummaryrefslogtreecommitdiff
path: root/middleware/etcd/other_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/etcd/other_test.go')
-rw-r--r--middleware/etcd/other_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/middleware/etcd/other_test.go b/middleware/etcd/other_test.go
index a00f742b6..018aedfaa 100644
--- a/middleware/etcd/other_test.go
+++ b/middleware/etcd/other_test.go
@@ -25,8 +25,7 @@ func TestOtherLookup(t *testing.T) {
defer delete(t, etc, serv.Key)
}
for _, tc := range dnsTestCasesOther {
- m := new(dns.Msg)
- m.SetQuestion(dns.Fqdn(tc.Qname), tc.Qtype)
+ m := tc.Msg()
rec := middleware.NewResponseRecorder(&middleware.TestResponseWriter{})
_, err := etc.ServeDNS(ctx, rec, m)