Commit fbcad2af authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

testInventoryAPI: commit Zope transaction at the beginning of beforeTearDown().

so that unindexObject SQL query are invoked after another MariaDB transaction for SELECT is committed to avoid deadlock.
parent e83a42ba
......@@ -125,6 +125,7 @@ class InventoryAPITestCase(ERP5TypeTestCase):
def beforeTearDown(self):
"""Clear everything for next test."""
self.commit()
for module in [ 'organisation_module',
'person_module',
'product_module',
......
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