aboutsummaryrefslogtreecommitdiffstats
path: root/dns/proxy_test.go
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2019-08-13 20:34:55 +0200
committerMartin Polden <mpolden@mpolden.no>2019-08-13 20:34:55 +0200
commit5b94c08f360c2d12d02c99dddfd5a62967f6545a (patch)
tree9afb521801b30a88e9a02aa3eeb6afb4284bbe1c /dns/proxy_test.go
parent8a9207cc3f57088f93fee3c5802848c89bdae711 (diff)
Set default cache expiry interval
Diffstat (limited to 'dns/proxy_test.go')
-rw-r--r--dns/proxy_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/dns/proxy_test.go b/dns/proxy_test.go
index 39bb516..2727b8e 100644
--- a/dns/proxy_test.go
+++ b/dns/proxy_test.go
@@ -60,9 +60,7 @@ func (l *testLogger) Record(remoteAddr net.IP, qtype uint16, question, answer st
l.remoteAddr = remoteAddr
}
-func testProxy(t *testing.T) *Proxy {
- return testProxyWithOptions(t, ProxyOptions{CacheExpiryInterval: time.Minute})
-}
+func testProxy(t *testing.T) *Proxy { return testProxyWithOptions(t, ProxyOptions{}) }
func testProxyWithOptions(t *testing.T, options ProxyOptions) *Proxy {
log, err := log.New(ioutil.Discard, "", log.RecordOptions{})
@@ -215,7 +213,7 @@ func TestProxyWithCache(t *testing.T) {
func TestProxyWithLogging(t *testing.T) {
log := &testLogger{}
- p, err := NewProxy(ProxyOptions{Logger: log, CacheExpiryInterval: time.Minute})
+ p, err := NewProxy(ProxyOptions{Logger: log})
if err != nil {
t.Fatal(err)
}