Commit 8cdf5c24 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix test_unknownNewPrimaryAnswerPrimaryMaster test (getNodeByUUID is called...

Fix test_unknownNewPrimaryAnswerPrimaryMaster test (getNodeByUUID is called just once, so it retrieved the value intended for the check of answering peer connection).


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@718 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 74b738ca
......@@ -424,7 +424,7 @@ class ClientHandlerTests(NeoTestBase):
test_primary_node_uuid = self.getNewUUID()
node = Mock({'getNodeType': MASTER_NODE_TYPE, 'getUUID': test_node_uuid, 'setUUID': None})
class App:
nm = Mock({'getNodeByUUID': ReturnValues(node, None), 'getNodeByServer': node, 'add': None})
nm = Mock({'getNodeByUUID': None, 'getNodeByServer': node, 'add': None})
primary_master_node = None
trying_master_node = None
app = App()
......
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