- fix tests

This commit is contained in:
Simon Zolin
2019-07-09 11:35:39 +03:00
parent 26db906e54
commit 0a1d7fd707
2 changed files with 2 additions and 2 deletions

View File

@@ -561,7 +561,7 @@ func BenchmarkSafeSearchParallel(b *testing.B) {
func TestDnsfilterDialCache(t *testing.T) {
d := Dnsfilter{}
dialCache = gcache.New(1).LRU().Expiration(30 * time.Minute).Build()
gctx.dialCache = gcache.New(1).LRU().Expiration(30 * time.Minute).Build()
d.shouldBeInDialCache("hostname")
if searchInDialCache("hostname") != "" {