Commit 3ae8f734 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

test: explicitly reindex module at beforeTearDown.

to avoid possible 'ignore keywords that exist in more than 50% of rows' trap in MySQL FTS.
parent 903155d6
......@@ -124,6 +124,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
self.getCategoryTool().region,
self.getCategoryTool().group ]:
module.manage_delObjects(list(module.objectIds()))
module.reindexObject()
# Remove copied sql_connector and catalog
if self.new_erp5_sql_connection in self.portal.objectIds():
self.portal.manage_delObjects([self.new_erp5_sql_connection])
......
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