summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOran Agra <oran@monfort.co.il>2017-03-15 01:05:15 -0700
committerOran Agra <oran@monfort.co.il>2017-03-15 01:05:15 -0700
commit4acb4da1d13a522c1c4e03bd4c5cab3c3b0c7724 (patch)
treea129c64777acbfd16128b63b311288b8477c7593 /tests
parenta62f786344d894b7447c3d3de6422cab6798c392 (diff)
downloadredis-4acb4da1d13a522c1c4e03bd4c5cab3c3b0c7724.tar.gz
add LFU policies to the test suite, just for coverage
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/maxmemory.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/maxmemory.tcl b/tests/unit/maxmemory.tcl
index e6bf7860c..0c3f6b32c 100644
--- a/tests/unit/maxmemory.tcl
+++ b/tests/unit/maxmemory.tcl
@@ -24,7 +24,7 @@ start_server {tags {"maxmemory"}} {
}
foreach policy {
- allkeys-random allkeys-lru volatile-lru volatile-random volatile-ttl
+ allkeys-random allkeys-lru allkeys-lfu volatile-lru volatile-lfu volatile-random volatile-ttl
} {
test "maxmemory - is the memory limit honoured? (policy $policy)" {
# make sure to start with a blank instance
@@ -98,7 +98,7 @@ start_server {tags {"maxmemory"}} {
}
foreach policy {
- volatile-lru volatile-random volatile-ttl
+ volatile-lru volatile-lfu volatile-random volatile-ttl
} {
test "maxmemory - policy $policy should only remove volatile keys." {
# make sure to start with a blank instance