Commit 6b7b416d authored by Vincent Pelletier's avatar Vincent Pelletier

Fix tests for r2364.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2368 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 64c0aef0
......@@ -86,12 +86,12 @@ class StorageReplicationHandlerTests(NeoTestBase):
'checkTIDRange': None,
'getTIDsFrom': None,
'getObjectHistoryFrom': None,
'getCurrentRID': rid,
'getCurrentCriticalTID': critical_tid,
})
replicator.current_partition = Mock({
'getRID': rid,
'getCriticalTID': critical_tid,
})
replicator.current_connection = conn
def isCurrentConnection(other_conn):
return other_conn is conn
replicator.isCurrentConnection = isCurrentConnection
real_replicator = replicator
class FakeApp(object):
replicator = real_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