diff options
Diffstat (limited to 'plugin/file/cname_test.go')
-rw-r--r-- | plugin/file/cname_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/file/cname_test.go b/plugin/file/cname_test.go index 1178a7512..f3b3a7731 100644 --- a/plugin/file/cname_test.go +++ b/plugin/file/cname_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/proxy" "github.com/coredns/coredns/plugin/test" @@ -25,7 +25,7 @@ func TestLookupCNAMEChain(t *testing.T) { for _, tc := range cnameTestCases { 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) @@ -82,7 +82,7 @@ func TestLookupCNAMEExternal(t *testing.T) { for _, tc := range exernalTestCases { 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) |