summaryrefslogtreecommitdiff
path: root/t/lru.t
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2009-10-29 18:39:06 -0700
committerDustin Sallings <dustin@spy.net>2009-10-30 16:18:53 -0700
commit95c8220d6900d95a84ee4033ac4ff75265fe7979 (patch)
treedb39a9e8b654121540b9d0ed647e95ad331227db /t/lru.t
parent6dc28e905d7b9f7809f6e8c0e372588740c28e47 (diff)
downloadmemcached-95c8220d6900d95a84ee4033ac4ff75265fe7979.tar.gz
Ensure LRU tests use largest slab.
Diffstat (limited to 't/lru.t')
-rwxr-xr-xt/lru.t5
1 files changed, 1 insertions, 4 deletions
diff --git a/t/lru.t b/t/lru.t
index a198b0f..86a8d1e 100755
--- a/t/lru.t
+++ b/t/lru.t
@@ -12,10 +12,7 @@ my $sock = $server->sock;
# create a big value for the largest slab
my $max = 1024 * 1024;
-my $big = "a big value that's > .5M and < 1M. ";
-while (length($big) * 2 < $max) {
- $big = $big . $big;
-}
+my $big = 'x' x (1024 * 1024 - 250);
ok(length($big) > 512 * 1024);
ok(length($big) < 1024 * 1024);