Commit 03fa9246 authored by Łukasz Nowak's avatar Łukasz Nowak

Check divergency but give last chance to stabilise it.

parent 2490e862
......@@ -420,4 +420,20 @@ class testVifibMixin(ERP5TypeTestCase):
# tic after activateAlarm
self.tic()
self.checkDivergency()
try:
self.checkDivergency()
except AssertionError:
# try last time to solve deliveries
sm = getSecurityManager()
self.login()
try:
self.portal.portal_alarm.vifib_update_delivery_causality_state.activeSense()
transaction.commit()
self.tic()
self.portal.portal_alarm.vifib_solve_automatically.activeSense()
transaction.commit()
self.tic()
finally:
setSecurityManager(sm)
self.checkDivergency()
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