[Erp5-report] r42850 kazuhiko - /erp5/trunk/products/ERP5Type/tests/testMemcachedTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 31 22:09:22 CET 2011
Author: kazuhiko
Date: Mon Jan 31 22:09:22 2011
New Revision: 42850
URL: http://svn.erp5.org?rev=42850&view=rev
Log:
sleep a bit more to wait for expiration otherwise possibly it seems to fail due to precision problem.
Modified:
erp5/trunk/products/ERP5Type/tests/testMemcachedTool.py
Modified: erp5/trunk/products/ERP5Type/tests/testMemcachedTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/testMemcachedTool.py?rev=42850&r1=42849&r2=42850&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/testMemcachedTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/testMemcachedTool.py [utf8] Mon Jan 31 22:09:22 2011
@@ -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)
More information about the Erp5-report
mailing list