aboutsummaryrefslogtreecommitdiff
path: root/middleware/log/log_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/log/log_test.go')
-rw-r--r--middleware/log/log_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/middleware/log/log_test.go b/middleware/log/log_test.go
index b5df1ad76..77e3f2e3c 100644
--- a/middleware/log/log_test.go
+++ b/middleware/log/log_test.go
@@ -6,7 +6,7 @@ import (
"strings"
"testing"
- "github.com/miekg/coredns/middleware"
+ "github.com/miekg/coredns/middleware/pkg/dnsrecorder"
"github.com/miekg/coredns/middleware/test"
"github.com/miekg/dns"
@@ -37,7 +37,7 @@ func TestLoggedStatus(t *testing.T) {
r := new(dns.Msg)
r.SetQuestion("example.org.", dns.TypeA)
- rec := middleware.NewResponseRecorder(&test.ResponseWriter{})
+ rec := dnsrecorder.New(&test.ResponseWriter{})
rcode, _ := logger.ServeDNS(ctx, rec, r)
if rcode != 0 {