Skip to content

Commit

Permalink
✨ Fix invalid capacity test case
Browse files Browse the repository at this point in the history
  • Loading branch information
motoki317 committed Apr 2, 2022
1 parent bc696fa commit 4670c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down

0 comments on commit 4670c37

Please sign in to comment.