diff options
Diffstat (limited to 'test/auto_test.go')
-rw-r--r-- | test/auto_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/auto_test.go b/test/auto_test.go index 7b615765a..279dedcbc 100644 --- a/test/auto_test.go +++ b/test/auto_test.go @@ -42,7 +42,7 @@ func TestAuto(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, "www.example.org.", dns.TypeA) @@ -108,7 +108,7 @@ func TestAutoNonExistentZone(t *testing.T) { } defer i.Stop() - 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) @@ -155,7 +155,7 @@ func TestAutoAXFR(t *testing.T) { time.Sleep(1100 * time.Millisecond) // wait for it to be picked up - p := proxy.New([]string{udp}) + p := proxy.NewLookup([]string{udp}) m := new(dns.Msg) m.SetAxfr("example.org.") state := request.Request{W: &test.ResponseWriter{}, Req: m} |