aboutsummaryrefslogtreecommitdiff
path: root/test/etcd_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/etcd_test.go')
-rw-r--r--test/etcd_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/etcd_test.go b/test/etcd_test.go
index 6645e9931..6f3c0b39a 100644
--- a/test/etcd_test.go
+++ b/test/etcd_test.go
@@ -9,11 +9,11 @@ import (
"testing"
"time"
- "github.com/miekg/coredns/middleware"
"github.com/miekg/coredns/middleware/etcd"
"github.com/miekg/coredns/middleware/etcd/msg"
"github.com/miekg/coredns/middleware/proxy"
"github.com/miekg/coredns/middleware/test"
+ "github.com/miekg/coredns/request"
etcdc "github.com/coreos/etcd/client"
"github.com/miekg/dns"
@@ -67,7 +67,7 @@ func TestEtcdStubAndProxyLookup(t *testing.T) {
}
p := proxy.New([]string{udp}) // use udp port from the server
- 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.com.", dns.TypeA)
if err != nil {
t.Error("Expected to receive reply, but didn't")