Commit 549ffaf0 authored by Julien Muchembled's avatar Julien Muchembled

Fix random failures of test_06_CheckCacheExpiration

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43469 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ebbed017
......@@ -494,7 +494,8 @@ return 'a' * 1024 * 1024 * 25
self.assertTrue(calculation_time < 1.0)
# Wait expiration period then check that value is computed
time_left_to_wait = (self.cache_duration - calculation_time)
# .1 is an additional epsilon delay to work around time precision issues
time_left_to_wait = .1 + self.cache_duration
print "\n\tSleep %.2f seconds to wait expiration time" % time_left_to_wait
time.sleep(time_left_to_wait)
......
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