Commit a50d64c7 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

testVanillaERP5Catalog, testIngestion: commit transaction before manage_catalogClear().

manage_catalogClear() calls 'DROP TABLE' thus another SELECT transaction should be committed before that.
parent 2740a235
......@@ -119,6 +119,7 @@ class TestVanillaERP5Catalog(ERP5TypeTestCase, LogInterceptor):
portal.organisation_module.newContent(portal_type='Organisation', title="GreatTitle2")
self.tic()
original_path_list = self.getSQLPathList()
self.commit()
self.getCatalogTool().manage_catalogClear()
self.assertEqual([], self.getSQLPathList())
portal.ERP5Site_reindexAll()
......
......@@ -1424,6 +1424,7 @@ class TestIngestion(IngestionTestCase):
# Clear catalog
portal_catalog = self.getCatalogTool()
self.commit()
portal_catalog.manage_catalogClear()
# Reindex all
portal.ERP5Site_reindexAll()
......
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