Commit 6b55ac3e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

testERP5CatalogSecurityUidOptimization: commit transaction after refreshWorklistCache().

so that the default connection can fetch the result after READ-COMMITTED transaction.
parent d26d9975
......@@ -198,6 +198,7 @@ class TestSecurityUidOptimizationWorklist(SecurityUidOptimizationTestCase):
def assertWorklistCount(self, username, expected_count_by_worklist_id):
self.loginByUserName(username)
self.portal.portal_workflow.refreshWorklistCache()
self.commit()
self.portal.portal_caches.clearAllCache()
worklist_info_by_worklist_id = {
r['worklist_id']: r
......
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