aboutsummaryrefslogtreecommitdiff
path: root/test/cache_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/cache_test.go')
-rw-r--r--test/cache_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cache_test.go b/test/cache_test.go
index f1cdbe76f..1d4517969 100644
--- a/test/cache_test.go
+++ b/test/cache_test.go
@@ -56,7 +56,7 @@ func TestLookupCache(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)
@@ -65,7 +65,7 @@ func TestLookupCache(t *testing.T) {
}
// expect answer section with A record in it
if len(resp.Answer) == 0 {
- t.Error("Expected to at least one RR in the answer section, got none")
+ t.Fatal("Expected to at least one RR in the answer section, got none")
}
ttl := resp.Answer[0].Header().Ttl