Commit a3f87406 authored by Sebastien Robin's avatar Sebastien Robin

erp5_test_result: fixed a confusion between days and seconds while restarting stuck tests

parent 0ca3d7cd
......@@ -19,6 +19,9 @@ for test_result_node in context.contentValues(portal_type='Test Result Node'):
# it should mean testnode is dead, this test should be restarted
if timeout is None:
timeout = 1.0/24*3
else:
# transform it has number of days (instead of seconds)
timeout = float(timeout) / 3600 / 24
old_date = now-timeout
if context.getSimulationState() == "started":
......
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