diff options
author | Martin Polden <mpolden@mpolden.no> | 2019-12-28 14:18:24 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2019-12-28 14:41:37 +0100 |
commit | 065b2310f6590b230a5d18c8efd229dbab7f7628 (patch) | |
tree | 92dca88f604381be6915c295fef0154b7592fa3b /dns/proxy_test.go | |
parent | baeb01353df6c0f0236c801d9d1962482105a625 (diff) |
Remove config option for cache expiry interval
Diffstat (limited to 'dns/proxy_test.go')
-rw-r--r-- | dns/proxy_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dns/proxy_test.go b/dns/proxy_test.go index 8801012..4069dd3 100644 --- a/dns/proxy_test.go +++ b/dns/proxy_test.go @@ -68,7 +68,7 @@ func testProxy(t *testing.T) *Proxy { if err != nil { t.Fatal(err) } - proxy, err := NewProxy(cache.New(0, time.Minute), log, ProxyOptions{}) + proxy, err := NewProxy(cache.New(0), log, ProxyOptions{}) if err != nil { t.Fatal(err) } @@ -192,7 +192,7 @@ func TestProxyWithResolvers(t *testing.T) { func TestProxyWithCache(t *testing.T) { p := testProxy(t) - p.cache = cache.New(10, time.Minute) + p.cache = cache.New(10) p.resolvers = []string{"resolver1"} client := make(testClient) p.client = client @@ -214,7 +214,7 @@ func TestProxyWithCache(t *testing.T) { func TestProxyWithLogging(t *testing.T) { logger := &testLogger{} - p, err := NewProxy(cache.New(0, time.Minute), logger, ProxyOptions{}) + p, err := NewProxy(cache.New(0), logger, ProxyOptions{}) if err != nil { t.Fatal(err) } |