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): ...@@ -86,12 +86,12 @@ class StorageReplicationHandlerTests(NeoTestBase):
'checkTIDRange': None, 'checkTIDRange': None,
'getTIDsFrom': None, 'getTIDsFrom': None,
'getObjectHistoryFrom': None, 'getObjectHistoryFrom': None,
'getCurrentRID': rid,
'getCurrentCriticalTID': critical_tid,
}) })
replicator.current_partition = Mock({ def isCurrentConnection(other_conn):
'getRID': rid, return other_conn is conn
'getCriticalTID': critical_tid, replicator.isCurrentConnection = isCurrentConnection
})
replicator.current_connection = conn
real_replicator = replicator real_replicator = replicator
class FakeApp(object): class FakeApp(object):
replicator = real_replicator 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