aboutsummaryrefslogtreecommitdiff
path: root/test/proxy_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/proxy_test.go')
-rw-r--r--test/proxy_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/proxy_test.go b/test/proxy_test.go
index 96a2c4c0d..e946f4354 100644
--- a/test/proxy_test.go
+++ b/test/proxy_test.go
@@ -5,9 +5,9 @@ import (
"log"
"testing"
- "github.com/miekg/coredns/middleware"
"github.com/miekg/coredns/middleware/proxy"
"github.com/miekg/coredns/middleware/test"
+ "github.com/miekg/coredns/request"
"github.com/miekg/dns"
)
@@ -46,7 +46,7 @@ func TestLookupProxy(t *testing.T) {
log.SetOutput(ioutil.Discard)
p := proxy.New([]string{udp})
- state := middleware.State{W: &test.ResponseWriter{}, Req: new(dns.Msg)}
+ state := request.Request{W: &test.ResponseWriter{}, Req: new(dns.Msg)}
resp, err := p.Lookup(state, "example.org.", dns.TypeA)
if err != nil {
t.Fatal("Expected to receive reply, but didn't")