diff options
Diffstat (limited to 'test/proxy_test.go')
-rw-r--r-- | test/proxy_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/proxy_test.go b/test/proxy_test.go index 01bfa0500..3f22a6cb9 100644 --- a/test/proxy_test.go +++ b/test/proxy_test.go @@ -38,7 +38,7 @@ func TestLookupProxy(t *testing.T) { log.SetOutput(ioutil.Discard) - p := proxy.New([]string{udp}) + p := proxy.NewLookup([]string{udp}) state := request.Request{W: &test.ResponseWriter{}, Req: new(dns.Msg)} resp, err := p.Lookup(state, "example.org.", dns.TypeA) if err != nil { @@ -82,7 +82,7 @@ func BenchmarkLookupProxy(b *testing.B) { log.SetOutput(ioutil.Discard) - p := proxy.New([]string{udp}) + p := proxy.NewLookup([]string{udp}) state := request.Request{W: &test.ResponseWriter{}, Req: new(dns.Msg)} b.ResetTimer() |