diff --git a/bt5/erp5_ui_test_core/ExtensionTemplateItem/portal_components/extension.erp5.ERP5Zuite.py b/bt5/erp5_ui_test_core/ExtensionTemplateItem/portal_components/extension.erp5.ERP5Zuite.py
index 865949ab557447e546f34504520fc2290a5d2578..cb6d478ff0efe6ee68f34b2a54b2e6ecec5940f0 100644
--- a/bt5/erp5_ui_test_core/ExtensionTemplateItem/portal_components/extension.erp5.ERP5Zuite.py
+++ b/bt5/erp5_ui_test_core/ExtensionTemplateItem/portal_components/extension.erp5.ERP5Zuite.py
@@ -1,3 +1,4 @@
+from Products.CMFActivity.Activity.Queue import VALIDATION_ERROR_DELAY
 
 def waitForActivities(self, count=1000):
   """
@@ -7,13 +8,16 @@ def waitForActivities(self, count=1000):
     to finish activities.
   """
   activity_tool = self.getPortalObject().portal_activities
-  for x in xrange(count):
+  while count > 0:
+    count -= 1
     x = activity_tool.getMessageList()
     if not x:
       return 'Done.'
     if all(x.processing_node == -2 for x in x):
       break
     activity_tool.process_timer(None, None)
+    if count % 10 == 0:
+      activity_tool.timeShift(3 * VALIDATION_ERROR_DELAY)
   raise RuntimeError('tic is looping forever.')
 
 def UpdateImage(image):