diff --git a/product/ERP5/tests/testAlarm.py b/product/ERP5/tests/testAlarm.py
index e15c49378263241edbfc2d4d23e8b88f5e48251e..785632b74328f23683483d7cc7b95733c9ec78ed 100644
--- a/product/ERP5/tests/testAlarm.py
+++ b/product/ERP5/tests/testAlarm.py
@@ -419,6 +419,8 @@ class TestAlarm(ERP5TypeTestCase):
     skin_folder[sense_method_id].ZPythonScript_edit('*args,**kw', 'raise Exception')
     del skin_folder
     alarm = self.newAlarm()
+    get_transaction().commit()
+    self.tic()
     now = DateTime()
     alarm.setActiveSenseMethodId(sense_method_id)
     self.assertEquals(alarm.isActive(), 0)