aboutsummaryrefslogtreecommitdiff
path: root/test/secondary_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/secondary_test.go')
-rw-r--r--test/secondary_test.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/secondary_test.go b/test/secondary_test.go
index 18bfd8f15..bb013bbaf 100644
--- a/test/secondary_test.go
+++ b/test/secondary_test.go
@@ -3,9 +3,7 @@ package test
import (
"testing"
- "github.com/coredns/coredns/plugin/proxy"
"github.com/coredns/coredns/plugin/test"
- "github.com/coredns/coredns/request"
"github.com/miekg/dns"
)
@@ -25,10 +23,9 @@ func TestEmptySecondaryZone(t *testing.T) {
}
defer i.Stop()
- p := proxy.NewLookup([]string{udp})
- state := request.Request{W: &test.ResponseWriter{}, Req: new(dns.Msg)}
-
- resp, err := p.Lookup(state, "www.example.org.", dns.TypeA)
+ m := new(dns.Msg)
+ m.SetQuestion("www.example.org.", dns.TypeA)
+ resp, err := dns.Exchange(m, udp)
if err != nil {
t.Fatal("Expected to receive reply, but didn't")
}