fix test_BackwardCompatibilityWithOldMethods failure that happened only when...

fix test_BackwardCompatibilityWithOldMethods failure that happened only when running multiple tests at the same time

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/catalog_join@42344 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5b985fa0
......@@ -4458,7 +4458,12 @@ VALUES
module = self.getOrganisationModule()
org_a = self._makeOrganisation(title='abc',default_address_city='abc')
org_a.setReference(org_a.getId())
org_a.immediateReindexObject()
# sometimes the module itself is not indexed yet...
module.reindexObject()
# Flush message queue
transaction.commit()
self.tic()
# make a query to fetch the address of the organisation above by
# querying, among other things, the grand_parent
......
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