Commit 8f6bdebd authored by Grégory Wisniewski's avatar Grégory Wisniewski

This attribute no more exists in master's app since transaction manager creation.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1482 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 6c192465
......@@ -43,7 +43,6 @@ class MasterClientElectionTests(NeoTestBase):
self.app = Application(config)
self.app.pt.clear()
self.app.em = Mock({"getConnectionList" : []})
self.app.finishing_transaction_dict = {}
for address in self.app.master_node_list:
self.app.nm.createMaster(address=address)
self.election = ClientElectionHandler(self.app)
......@@ -246,7 +245,6 @@ class MasterServerElectionTests(NeoTestBase):
self.app = Application(config)
self.app.pt.clear()
self.app.em = Mock({"getConnectionList" : []})
self.app.finishing_transaction_dict = {}
for address in self.app.master_node_list:
self.app.nm.createMaster(address=address)
self.election = ServerElectionHandler(self.app)
......
......@@ -30,7 +30,6 @@ class MasterRecoveryTests(NeoTestBase):
config = self.getMasterConfiguration()
self.app = Application(config)
self.app.pt.clear()
self.app.finishing_transaction_dict = {}
for address in self.app.master_node_list:
self.app.nm.createMaster(address=address)
self.recovery = RecoveryHandler(self.app)
......
......@@ -91,11 +91,9 @@ class MasterStorageHandlerTests(NeoTestBase):
service.finishTransaction(conn, packet, oid_list, tid)
self.checkLockInformation(storage_conn_1)
self.checkLockInformation(storage_conn_2)
self.assertFalse(self.app.finishing_transaction_dict.values()[0].allLocked())
service.notifyInformationLocked(storage_conn_1, packet, tid)
self.checkLockInformation(storage_conn_1)
self.checkLockInformation(storage_conn_2)
self.assertFalse(self.app.finishing_transaction_dict.values()[0].allLocked())
service.notifyInformationLocked(storage_conn_2, packet, tid)
self.checkNotifyTransactionFinished(conn)
self.checkLockInformation(storage_conn_1)
......
......@@ -33,7 +33,6 @@ class MasterVerificationTests(NeoTestBase):
config = self.getMasterConfiguration()
self.app = Application(config)
self.app.pt.clear()
self.app.finishing_transaction_dict = {}
for address in self.app.master_node_list:
self.app.nm.createMaster(address=address)
self.verification = VerificationHandler(self.app)
......
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