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
......@@ -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)
......
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