aboutsummaryrefslogtreecommitdiffstats
path: root/store_test.go
diff options
context:
space:
mode:
authorMarc Pervaz Boocha <marcpervaz@qburst.com>2025-03-03 11:22:32 +0530
committerMarc Pervaz Boocha <marcpervaz@qburst.com>2025-03-03 11:22:32 +0530
commitce850da379785f471109a6d2ba4e34eee7a15eed (patch)
tree50632fb938d19164d5bcdef7564fe83d508a6736 /store_test.go
parentImproved Concurency Part1 (diff)
downloadcache-ce850da379785f471109a6d2ba4e34eee7a15eed.tar
cache-ce850da379785f471109a6d2ba4e34eee7a15eed.tar.gz
cache-ce850da379785f471109a6d2ba4e34eee7a15eed.tar.bz2
cache-ce850da379785f471109a6d2ba4e34eee7a15eed.tar.lz
cache-ce850da379785f471109a6d2ba4e34eee7a15eed.tar.xz
cache-ce850da379785f471109a6d2ba4e34eee7a15eed.tar.zst
cache-ce850da379785f471109a6d2ba4e34eee7a15eed.zip
Improved Concurency
Diffstat (limited to '')
-rw-r--r--store_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/store_test.go b/store_test.go
index 01af0c3..f6cccc9 100644
--- a/store_test.go
+++ b/store_test.go
@@ -317,6 +317,7 @@ func TestStoreEvict(t *testing.T) {
if err := store.Policy.SetPolicy(PolicyFIFO); err != nil {
t.Fatalf("unexpected error: %v", err)
}
+
store.MaxCost = 5
store.Set([]byte("1"), []byte("1"), 0)