aboutsummaryrefslogtreecommitdiff
path: root/plugin/cache/prefech_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/cache/prefech_test.go')
-rw-r--r--plugin/cache/prefech_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/cache/prefech_test.go b/plugin/cache/prefech_test.go
index 0e9d84da2..77a8f45ea 100644
--- a/plugin/cache/prefech_test.go
+++ b/plugin/cache/prefech_test.go
@@ -7,7 +7,7 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/cache"
- "github.com/coredns/coredns/plugin/pkg/dnsrecorder"
+ "github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"github.com/miekg/dns"
@@ -29,7 +29,7 @@ func TestPrefetch(t *testing.T) {
req := new(dns.Msg)
req.SetQuestion("lowttl.example.org.", dns.TypeA)
- rec := dnsrecorder.New(&test.ResponseWriter{})
+ rec := dnstest.NewRecorder(&test.ResponseWriter{})
c.ServeDNS(ctx, rec, req)
p = true // prefetch should be true for the 2nd fetch