Commit 5b547ecc authored by Vincent Pelletier's avatar Vincent Pelletier

fixup! all: Avoid trivial direct calls to {recursiveI,i}mmediateReindexObject

Tic'ing mid-hot-reindex is not possible, so immediate reindexation is
not avoidable here. Also, immediate indexation of just-created document
is acceptable, so this is not exactly a bad example.
parent 18b201de
......@@ -1342,7 +1342,8 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
# and then delete it
self.deleted_organisation = module.newContent(portal_type='Organisation',
title="GreatTitle2")
self.tic()
self.deleted_organisation.immediateReindexObject()
self.commit()
deleted_url = self.deleted_organisation.getRelativeUrl()
module.manage_delObjects(ids=[self.deleted_organisation.getId()])
self.commit()
......
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