diff options
author | dormando <dormando@rydia.net> | 2017-07-26 11:18:28 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-07-26 11:18:28 -0700 |
commit | 24368e645f37cf7513865c3aa76e67158fbb37e9 (patch) | |
tree | 35aa5df20d3795a5b4e3a47c215b1eb133b709ba /t/stats.t | |
parent | 3f3e1379368753e540a332f90f996a3eb7ab8e9e (diff) | |
download | memcached-24368e645f37cf7513865c3aa76e67158fbb37e9.tar.gz |
fix flaky stats.t test
lru maintainer was racing to free expired/flushed items, so the "get_flushed"
and similar counters couldn't tick. disable those bg threads for this test.
Diffstat (limited to 't/stats.t')
-rwxr-xr-x | t/stats.t | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ use FindBin qw($Bin); use lib "$Bin/lib"; use MemcachedTest; -my $server = new_memcached(); +my $server = new_memcached("-o no_lru_crawler,no_lru_maintainer"); my $sock = $server->sock; @@ -24,7 +24,7 @@ my $sock = $server->sock; my $stats = mem_stats($sock); # Test number of keys -is(scalar(keys(%$stats)), 78, "expected count of stats values"); +is(scalar(keys(%$stats)), 71, "expected count of stats values"); # Test initial state foreach my $key (qw(curr_items total_items bytes cmd_get cmd_set get_hits evictions get_misses get_expired |