From 8aced9e9c53d85ba90a448b94c5abf142bcf960b Mon Sep 17 00:00:00 2001 From: Oran Agra Date: Wed, 15 Mar 2017 01:05:15 -0700 Subject: [PATCH] add LFU policies to the test suite, just for coverage --- tests/unit/maxmemory.tcl | 4 ++-- 1 file 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