Commit 903f8382 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Output More useful information on a tic error.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4275 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 862657c2
...@@ -258,7 +258,7 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -258,7 +258,7 @@ class ERP5TypeTestCase(PortalTestCase):
# This prevents an infinite loop. # This prevents an infinite loop.
count -= 1 count -= 1
if count == 0: if count == 0:
raise RuntimeError, 'tic is looping forever. These messages are pending: %r' % (portal_activities.getMessageList(),) raise RuntimeError, 'tic is looping forever. These messages are pending: %r' % ([('/'.join(m.object_path), m.method_id, m.processing_node, m.priority) for m in portal_activities.getMessageList()],)
# This give some time between messages # This give some time between messages
if count % 10 == 0: if count % 10 == 0:
from Products.CMFActivity.Activity.Queue import VALIDATION_ERROR_DELAY from Products.CMFActivity.Activity.Queue import VALIDATION_ERROR_DELAY
......
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