diff --git a/cache_test.go b/cache_test.go index 4c2e0c6..4e5d1f8 100644 --- a/cache_test.go +++ b/cache_test.go @@ -509,7 +509,7 @@ func TestLargeEntry(t *testing.T) { if err != ErrLargeEntry { t.Error("err should be ErrLargeEntry", err) } - val = make([]byte, maxValLen-2) + val = make([]byte, 0, maxValLen-2) err = cache.Set(key, val, 0) if err != nil { t.Error(err)