From 48320e80358482f0ed0543bb66264b7d546c742b Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Mon, 31 Jan 2011 21:09:22 +0000
Subject: [PATCH] sleep a bit more to wait for expiration otherwise possibly it
 seems to fail due to precision problem.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42850 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/tests/testMemcachedTool.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Type/tests/testMemcachedTool.py b/product/ERP5Type/tests/testMemcachedTool.py
index 624ebce9fb..2e066016d0 100644
--- a/product/ERP5Type/tests/testMemcachedTool.py
+++ b/product/ERP5Type/tests/testMemcachedTool.py
@@ -201,8 +201,8 @@ class TestMemcachedTool(ERP5TypeTestCase):
     transaction.commit()
     self.assertEquals(tested_dict.get(key), value)
     transaction.commit()
-    # Sleep 10s
-    time.sleep(self.expiration_time)
+    # Sleep epliration_time + 1 second to be sure that it is well expired
+    time.sleep(self.expiration_time + 1)
     # now value should have expired
     self.assertRaises(KeyError, tested_dict.__getitem__, key)
 
-- 
2.30.9