diff options
author | Dustin Sallings <dustin@spy.net> | 2009-03-11 12:48:46 -0700 |
---|---|---|
committer | Dustin Sallings <dustin@spy.net> | 2009-03-11 12:48:46 -0700 |
commit | 890e3cd7c1f22a4c84d6effa8591d219229fbfdf (patch) | |
tree | 6bac6862dee1ff3b7bcc7fcb368ca7a9e58744be | |
parent | cc45c123b610bb81ba3c90907973a25ca9f8b6a5 (diff) | |
download | memcached-890e3cd7c1f22a4c84d6effa8591d219229fbfdf.tar.gz |
Slow down the add test a bit.
Solaris with dtrace enabled was rather consistently failing this.
Expiration times around 1 can get dropped due to memcached clock
resolution.
-rwxr-xr-x | t/expirations.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/expirations.t b/t/expirations.t index c7db308..c92125a 100755 --- a/t/expirations.t +++ b/t/expirations.t @@ -52,13 +52,13 @@ print $sock "set boo 0 $expire 6\r\nbooval\r\n"; is(scalar <$sock>, "STORED\r\n", "stored boo"); mem_get_is($sock, "boo", undef, "now expired"); -print $sock "add add 0 1 6\r\naddval\r\n"; +print $sock "add add 0 2 6\r\naddval\r\n"; is(scalar <$sock>, "STORED\r\n", "stored add"); mem_get_is($sock, "add", "addval"); # second add fails -print $sock "add add 0 1 7\r\naddval2\r\n"; +print $sock "add add 0 2 7\r\naddval2\r\n"; is(scalar <$sock>, "NOT_STORED\r\n", "add failure"); -sleep(1.3); -print $sock "add add 0 1 7\r\naddval3\r\n"; +sleep(2.3); +print $sock "add add 0 2 7\r\naddval3\r\n"; is(scalar <$sock>, "STORED\r\n", "stored add again"); mem_get_is($sock, "add", "addval3"); |