Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (18 sloc) 631 Bytes
use strict;
use Test::More tests => 4;
use FindBin qw($Bin);
use lib "$Bin/lib";
use MemcachedTest;
my $server = new_memcached();
my $sock = $server->sock;
print $sock "set issue29 0 0 0\r\n\r\n";
is (scalar <$sock>, "STORED\r\n", "stored issue29");
my $first_stats = mem_stats($sock, "slabs");
my $first_used = $first_stats->{"1:used_chunks"};
is(1, $first_used, "Used one");
print $sock "set issue29_b 0 0 0\r\n\r\n";
is (scalar <$sock>, "STORED\r\n", "stored issue29_b");
my $second_stats = mem_stats($sock, "slabs");
my $second_used = $second_stats->{"1:used_chunks"};
is(2, $second_used, "Used two")
Jump to Line
Something went wrong with that request. Please try again.