Commit d1bff15d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

testSQLCachedWorklist: commit transaction before clear cache to avoid deadlocks.

also commit transaction after clear cache to start new MariaDB transactions.
parent 0f9c9e5c
......@@ -39,8 +39,10 @@ class TestSQLCachedWorklist(TestWorklist):
return TestWorklist.getBusinessTemplateList(self) + ('erp5_worklist_sql', )
def clearCache(self):
self.commit()
TestWorklist.clearCache(self)
self.portal.portal_workflow.refreshWorklistCache()
self.commit()
test_02_related_key = todo_erp5(TestWorklist.test_02_related_key)
test_04_dynamic_variables = todo_erp5(TestWorklist.test_04_dynamic_variables)
......
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