Commit 4ca76951 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix r2159 (again)

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2166 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b66ba398
...@@ -254,12 +254,12 @@ class StorageClientHandlerTests(NeoTestBase): ...@@ -254,12 +254,12 @@ class StorageClientHandlerTests(NeoTestBase):
} }
self.app.dm.getTransactionUndoData = getTransactionUndoData self.app.dm.getTransactionUndoData = getTransactionUndoData
original_storeObject = self.app.tm.storeObject original_storeObject = self.app.tm.storeObject
def storeObject(uuid, tid, serial, oid, *args, **kw): def storeObject(tid, serial, oid, *args, **kw):
if oid == oid_3: if oid == oid_3:
raise ConflictError(0) raise ConflictError(0)
elif oid == oid_4 and delay_store: elif oid == oid_4 and delay_store:
raise DelayedError raise DelayedError
return original_storeObject(uuid, tid, serial, oid, *args, **kw) return original_storeObject(tid, serial, oid, *args, **kw)
self.app.tm.storeObject = storeObject self.app.tm.storeObject = storeObject
# Check if delaying a store (of oid_4) is supported # Check if delaying a store (of oid_4) is supported
......
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