Commit b8295f98 authored by Julien Muchembled's avatar Julien Muchembled

Use appropriate SQL connection to check resources in testCommitOrder

Previous code was not working if connection strings were different for catalog
and activity.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35630 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f5a0bb76
...@@ -64,7 +64,8 @@ class TestInvalidationBug(ERP5TypeTestCase): ...@@ -64,7 +64,8 @@ class TestInvalidationBug(ERP5TypeTestCase):
connection = connection.__class__('_' + connection_id, '', connection = connection.__class__('_' + connection_id, '',
'-' + connection.connection_string) '-' + connection.connection_string)
query = "rollback\0select * from %s where path='%s'" % (table, path) query = "rollback\0select * from %s where path='%s'" % (table, path)
test_list.append(lambda query=query: len(connection.manage_test(query))) test_list.append(lambda manage_test=connection.manage_test, query=query:
len(manage_test(query)))
result_list = [map(apply, test_list)] result_list = [map(apply, test_list)]
Transaction_commitResources = transaction.Transaction._commitResources Transaction_commitResources = transaction.Transaction._commitResources
def _commitResources(self): def _commitResources(self):
......
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