Commit 200bac42 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Raise when an inconsistency is found between storages during verification.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2326 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent a6973d26
......@@ -216,7 +216,8 @@ class VerificationManager(BaseServiceHandler):
# This is the first answer.
self._oid_set.update(oid_set)
elif self._oid_set != oid_set:
self._oid_set = None
raise ValueError, "Inconsistent transaction %s" % \
(dump(tid, ))
def tidNotFound(self, conn, message):
uuid = conn.getUUID()
......
......@@ -174,9 +174,8 @@ class MasterVerificationTests(NeoTestBase):
self.verification._uuid_set.add(uuid)
self.assertEquals(len(self.verification._oid_set), 1)
new_oid = self.getOID(2)
verification.answerTransactionInformation(conn, new_tid,
"user", "desc", "ext", False, [new_oid,])
self.assertEquals(self.verification._oid_set, None)
self.assertRaises(ValueError, verification.answerTransactionInformation,
conn, new_tid, "user", "desc", "ext", False, [new_oid,])
def test_13_tidNotFound(self):
verification = self.verification
......
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