Commit e6238b5f 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 f6cae4eb
......@@ -126,6 +126,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