aboutsummaryrefslogtreecommitdiff
path: root/plugin/file/dnssec_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/file/dnssec_test.go')
-rw-r--r--plugin/file/dnssec_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/file/dnssec_test.go b/plugin/file/dnssec_test.go
index 17b122c7e..eb6374b03 100644
--- a/plugin/file/dnssec_test.go
+++ b/plugin/file/dnssec_test.go
@@ -4,7 +4,7 @@ import (
"strings"
"testing"
- "github.com/coredns/coredns/plugin/pkg/dnsrecorder"
+ "github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"github.com/miekg/dns"
@@ -138,7 +138,7 @@ func TestLookupDNSSEC(t *testing.T) {
for _, tc := range dnssecTestCases {
m := tc.Msg()
- rec := dnsrecorder.New(&test.ResponseWriter{})
+ rec := dnstest.NewRecorder(&test.ResponseWriter{})
_, err := fm.ServeDNS(ctx, rec, m)
if err != nil {
t.Errorf("Expected no error, got %v\n", err)
@@ -158,7 +158,7 @@ func BenchmarkFileLookupDNSSEC(b *testing.B) {
fm := File{Next: test.ErrorHandler(), Zones: Zones{Z: map[string]*Zone{testzone: zone}, Names: []string{testzone}}}
ctx := context.TODO()
- rec := dnsrecorder.New(&test.ResponseWriter{})
+ rec := dnstest.NewRecorder(&test.ResponseWriter{})
tc := test.Case{
Qname: "b.miek.nl.", Qtype: dns.TypeA, Do: true,