summaryrefslogtreecommitdiff
path: root/t/stats.t
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-07-26 11:18:28 -0700
committerdormando <dormando@rydia.net>2017-07-26 11:18:28 -0700
commit24368e645f37cf7513865c3aa76e67158fbb37e9 (patch)
tree35aa5df20d3795a5b4e3a47c215b1eb133b709ba /t/stats.t
parent3f3e1379368753e540a332f90f996a3eb7ab8e9e (diff)
downloadmemcached-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-xt/stats.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/stats.t b/t/stats.t
index 8310a55..f0fe288 100755
--- a/t/stats.t
+++ b/t/stats.t
@@ -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