Commit ee2ccc6b authored by Sebastien Robin's avatar Sebastien Robin

try to increase the timeShift value


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3463 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 46583980
...@@ -471,7 +471,7 @@ class TestCMFActivity(ERP5TypeTestCase): ...@@ -471,7 +471,7 @@ class TestCMFActivity(ERP5TypeTestCase):
self.assertEquals(organisation.getDescription(),self.title1) self.assertEquals(organisation.getDescription(),self.title1)
# Now wait some time and test again (this should be simulated by changing dates in SQL Queue) # Now wait some time and test again (this should be simulated by changing dates in SQL Queue)
from Products.CMFActivity.Activity.Queue import VALIDATION_ERROR_DELAY from Products.CMFActivity.Activity.Queue import VALIDATION_ERROR_DELAY
portal.portal_activities.timeShift(2 * VALIDATION_ERROR_DELAY) portal.portal_activities.timeShift(3 * VALIDATION_ERROR_DELAY)
portal.portal_activities.tic() portal.portal_activities.tic()
get_transaction().commit() get_transaction().commit()
message_list = portal.portal_activities.getMessageList() message_list = portal.portal_activities.getMessageList()
...@@ -1005,7 +1005,6 @@ class TestCMFActivity(ERP5TypeTestCase): ...@@ -1005,7 +1005,6 @@ class TestCMFActivity(ERP5TypeTestCase):
if __name__ == '__main__': if __name__ == '__main__':
framework() framework()
else: else:
......
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