提交 94751543 编写于 作者: S Salvatore Sanfilippo 提交者: GitHub

Merge pull request #3875 from oranagra/lfu_tests

add LFU policies to the test suite, just for coverage
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册