Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
c2e728a1
Commit
c2e728a1
authored
Jan 12, 2022
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Products.ERP5Type.test.ProcessingNodeTestCase: Allow overriding default tic delay.
parent
17e1460a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5Type/tests/ProcessingNodeTestCase.py
product/ERP5Type/tests/ProcessingNodeTestCase.py
+2
-2
No files found.
product/ERP5Type/tests/ProcessingNodeTestCase.py
View file @
c2e728a1
...
...
@@ -269,7 +269,7 @@ class ProcessingNodeTestCase(ZopeTestCase.TestCase):
transaction
.
commit
()
self
.
abort
()
def
tic
(
self
,
verbose
=
0
,
stop_condition
=
lambda
message_list
:
False
):
def
tic
(
self
,
verbose
=
0
,
stop_condition
=
lambda
message_list
:
False
,
delay
=
600
):
"""Execute pending activities"""
transaction
.
commit
()
# Some tests like testDeferredStyle require that we use self.getPortal()
...
...
@@ -280,7 +280,7 @@ class ProcessingNodeTestCase(ZopeTestCase.TestCase):
ZopeTestCase
.
_print
(
'Executing pending activities ...'
)
old_message_count
=
0
start
=
time
.
time
()
deadline
=
start
+
600
# This prevents an infinite loop.
deadline
=
start
+
delay
# This prevents an infinite loop.
getMessageList
=
portal_activities
.
getMessageList
message_list
=
getMessageList
()
message_count
=
len
(
message_list
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment