aboutsummaryrefslogtreecommitdiff
path: root/plugin/file/lookup_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/file/lookup_test.go')
-rw-r--r--plugin/file/lookup_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/file/lookup_test.go b/plugin/file/lookup_test.go
index 8fd93fd8e..dd922c1b6 100644
--- a/plugin/file/lookup_test.go
+++ b/plugin/file/lookup_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"
@@ -114,7 +114,7 @@ func TestLookup(t *testing.T) {
for _, tc := range dnsTestCases {
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)
@@ -131,7 +131,7 @@ func TestLookupNil(t *testing.T) {
ctx := context.TODO()
m := dnsTestCases[0].Msg()
- rec := dnsrecorder.New(&test.ResponseWriter{})
+ rec := dnstest.NewRecorder(&test.ResponseWriter{})
fm.ServeDNS(ctx, rec, m)
}
@@ -143,7 +143,7 @@ func BenchmarkFileLookup(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: "www.miek.nl.", Qtype: dns.TypeA,