Commit 48320e80 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

sleep a bit more to wait for expiration otherwise possibly it seems to fail...

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
parent 224309ed
No related merge requests found
...@@ -201,8 +201,8 @@ class TestMemcachedTool(ERP5TypeTestCase): ...@@ -201,8 +201,8 @@ class TestMemcachedTool(ERP5TypeTestCase):
transaction.commit() transaction.commit()
self.assertEquals(tested_dict.get(key), value) self.assertEquals(tested_dict.get(key), value)
transaction.commit() transaction.commit()
# Sleep 10s # Sleep epliration_time + 1 second to be sure that it is well expired
time.sleep(self.expiration_time) time.sleep(self.expiration_time + 1)
# now value should have expired # now value should have expired
self.assertRaises(KeyError, tested_dict.__getitem__, key) self.assertRaises(KeyError, tested_dict.__getitem__, key)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment