Commit 94751543 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #3875 from oranagra/lfu_tests

add LFU policies to the test suite, just for coverage
parents a62f7863 4acb4da1
...@@ -24,7 +24,7 @@ start_server {tags {"maxmemory"}} { ...@@ -24,7 +24,7 @@ start_server {tags {"maxmemory"}} {
} }
foreach policy { 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)" { test "maxmemory - is the memory limit honoured? (policy $policy)" {
# make sure to start with a blank instance # make sure to start with a blank instance
...@@ -98,7 +98,7 @@ start_server {tags {"maxmemory"}} { ...@@ -98,7 +98,7 @@ start_server {tags {"maxmemory"}} {
} }
foreach policy { 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." { test "maxmemory - policy $policy should only remove volatile keys." {
# make sure to start with a blank instance # make sure to start with a blank instance
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment