diff --git a/cache_test.go b/cache_test.go index 4d2c520..b2641d9 100644 --- a/cache_test.go +++ b/cache_test.go @@ -76,7 +76,7 @@ func TestNew(t *testing.T) { t.Run("map cache with invalid capacity", func(t *testing.T) { t.Parallel() - _, err := New[string, string](fn, 2*time.Minute, 1*time.Minute, WithMapBackend(), WithCapacity(-1)) + _, err := New[string, string](fn, 0, 0, WithMapBackend(), WithCapacity(-1)) assert.Error(t, err) })