9 plan skip_all => 'Fix for Issue 140 was only an illusion';
13 my $server = new_memcached();
14 my $sock = $server->sock;
16 print $sock "set a 0 0 1\r\na\r\n";
17 is (scalar <$sock>, "STORED\r\n", "stored key");
19 my $stats = mem_stats($sock, "items");
20 my $age = $stats->{"items:1:age"};
21 isnt ($age, "0", "Age should not be zero");
23 print $sock "flush_all\r\n";
24 is (scalar <$sock>, "OK\r\n", "items flushed");
26 my $stats = mem_stats($sock, "items");
27 my $age = $stats->{"items:1:age"};
28 is ($age, undef, "all should be gone");
30 print $sock "set a 0 1 1\r\na\r\n";
31 is (scalar <$sock>, "STORED\r\n", "stored key");
33 my $stats = mem_stats($sock, "items");
34 my $age = $stats->{"items:1:age"};
35 isnt ($age, "0", "Age should not be zero");
39 my $stats = mem_stats($sock, "items");
40 my $age = $stats->{"items:1:age"};
41 is ($age, undef, "all should be gone");