diff options
author | dormando <dormando@rydia.net> | 2018-08-10 15:31:22 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2018-08-11 16:24:03 -0700 |
commit | 2a381829b2418018506a3dde4bf125a1348726f2 (patch) | |
tree | e6ffa1d44d0746df30eba4ebe8d9ddf7dfb38845 /t/lru-maintainer.t | |
parent | 1ac5d63b9b027ad8951323108088ce8a8fcddd29 (diff) | |
download | memcached-2a381829b2418018506a3dde4bf125a1348726f2.tar.gz |
t/lru-maintainer.t: check for WARM item earlier
item might get pushed back out as we keep doing work. also use the move
counter instead of static number, in case of timing goofups pushing the warm
item back out.
Diffstat (limited to 't/lru-maintainer.t')
-rw-r--r-- | t/lru-maintainer.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/lru-maintainer.t b/t/lru-maintainer.t index 04fa76a..93091af 100644 --- a/t/lru-maintainer.t +++ b/t/lru-maintainer.t @@ -68,6 +68,8 @@ for (my $key = 0; $key < 100; $key++) { } last; } + $stats = mem_stats($sock, "items"); + isnt($stats->{"items:31:moves_to_warm"}, 0, "our canary moved to warm"); } print $sock "set key$key 0 0 66560\r\n$value\r\n"; is(scalar <$sock>, "STORED\r\n", "stored key$key"); @@ -76,8 +78,6 @@ for (my $key = 0; $key < 100; $key++) { { my $stats = mem_stats($sock); isnt($stats->{evictions}, 0, "some evictions happened"); - my $istats = mem_stats($sock, "items"); - isnt($istats->{"items:31:number_warm"}, 0, "our canary moved to warm"); use Data::Dumper qw/Dumper/; } |