Skip to content

Commit

Permalink
Change expiration value in the memcached_suite expiration test.
Browse files Browse the repository at this point in the history
Closes #264.
  • Loading branch information
Ivan Tarasov committed Apr 14, 2011
1 parent ae49f38 commit f989db3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/integration/memcached_suite/expirations.t
Expand Up @@ -28,11 +28,15 @@ sub wait_for_early_second {

wait_for_early_second();

print $sock "set foo 0 1 6\r\nfooval\r\n";
# Modified the expiration time to fix #264 (the old version of the line follows first)
# print $sock "set foo 0 1 6\r\nfooval\r\n";
print $sock "set foo 0 2 6\r\nfooval\r\n";
is(scalar <$sock>, "STORED\r\n", "stored foo");

mem_get_is($sock, "foo", "fooval");
sleep(1.5);
# Modified the expiration time to fix #264 (the old version of the line follows first)
# sleep(1.5);
sleep(2);
mem_get_is($sock, "foo", undef);

$expire = time() - 1;
Expand Down

0 comments on commit f989db3

Please sign in to comment.