aboutsummaryrefslogtreecommitdiff
path: root/plugin/errors/errors_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/errors/errors_test.go')
-rw-r--r--plugin/errors/errors_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/errors/errors_test.go b/plugin/errors/errors_test.go
index 039562a56..ce965ec6b 100644
--- a/plugin/errors/errors_test.go
+++ b/plugin/errors/errors_test.go
@@ -9,7 +9,7 @@ import (
"testing"
"github.com/coredns/coredns/plugin"
- "github.com/coredns/coredns/plugin/pkg/dnsrecorder"
+ "github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"github.com/miekg/dns"
@@ -48,7 +48,7 @@ func TestErrors(t *testing.T) {
for i, tc := range tests {
em.Next = tc.next
buf.Reset()
- rec := dnsrecorder.New(&test.ResponseWriter{})
+ rec := dnstest.NewRecorder(&test.ResponseWriter{})
code, err := em.ServeDNS(ctx, rec, req)
if err != tc.expectedErr {