From 890e3cd7c1f22a4c84d6effa8591d219229fbfdf Mon Sep 17 00:00:00 2001 From: Dustin Sallings Date: Wed, 11 Mar 2009 12:48:46 -0700 Subject: 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. --- t/expirations.t | 8 ++++---- 1 file 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"); -- cgit v1.2.1