Commit 8f44cd37 authored by Rafael Monnerat's avatar Rafael Monnerat

tests: ensure alarms for slapos are always solved for every test.

parent 7cd6c1bb
......@@ -149,6 +149,9 @@ class testSlapOSMixin(ERP5TypeTestCase):
transaction.commit()
self.portal.portal_caches.updateCache()
if getattr(self.portal, 'is_site_bootstrapped', 0):
for alarm in self.portal.portal_alarms.contentValues():
if alarm_id.startswith("promise_slapos"):
alarm.solve()
return
else:
self.portal.is_site_bootstrapped = 1
......
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