Commit 46eeac6f authored by Grégory Wisniewski's avatar Grégory Wisniewski

A transaction must have been started when lock/unlock is received.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1633 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 66ef9bed
......@@ -152,11 +152,6 @@ class StorageMasterHandlerTests(NeoTestBase):
calls = self.app.dm.mockGetNamedCalls('storeTransaction')
self.assertEquals(len(calls), 1)
self.checkAnswerInformationLocked(conn)
# transaction not in transaction_dict -> KeyError
transaction = Mock({ 'getObjectList': ((0, ), ), })
conn = Mock({ 'isServer': False, })
self.operation.lockInformation(conn, '\x01' * 8)
self.checkAnswerInformationLocked(conn)
def test_23_notifyUnlockInformation2(self):
# delete transaction informations
......@@ -173,11 +168,6 @@ class StorageMasterHandlerTests(NeoTestBase):
calls = self.app.dm.mockGetNamedCalls('finishTransaction')
self.assertEquals(len(calls), 1)
calls[0].checkArgs(INVALID_TID)
# transaction not in transaction_dict -> KeyError
transaction = Mock({ 'getObjectList': ((0, ), ), })
conn = Mock({ 'isServer': False, })
self.operation.lockInformation(conn, '\x01' * 8)
self.checkAnswerInformationLocked(conn)
def test_30_answerLastIDs(self):
# set critical TID on replicator
......
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