From 5b03620319b278d43e98b1095ee9f3160283acc4 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Wed, 2 May 2012 16:19:47 +0200 Subject: [PATCH] fix random failures of testERP5Administration --- product/ERP5/tests/testERP5Administration.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/product/ERP5/tests/testERP5Administration.py b/product/ERP5/tests/testERP5Administration.py index b4d0eac742..19b5524bd8 100644 --- a/product/ERP5/tests/testERP5Administration.py +++ b/product/ERP5/tests/testERP5Administration.py @@ -84,10 +84,12 @@ class TestERP5Administration(InventoryAPITestCase): person = self.portal.person_module.newContent(portal_type='Person') # this document will be non consistent, for PropertyTypeValidity person.title = 3 + # tic right now to make sure the person is indexed, indeed the alarm + # could use catalog to retrieve objects to check + self.stepTic() alarm.activeSense() - transaction.commit() - self.tic() + self.stepTic() # some errors were detected self.assertTrue(alarm.sense()) -- 2.30.9