From e6ebedf32a8c5c44695d3a48a91b0ece919e3898 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Mon, 29 Jun 2009 12:45:18 +0000 Subject: [PATCH] Fix test_connectToPrimaryMasterNode: connectToPrimaryMasterNode internal behavour changed. - it does not register new primary nodes (this only needs to be implemented in the handler as primary node will always send all nodes it knows) - it sets app.trying_master_node to None when connection fails git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@709 71dcc9de-d417-0410-9af5-da40c76e7ee4 --- neo/client/tests/testClientApp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neo/client/tests/testClientApp.py b/neo/client/tests/testClientApp.py index a956b849..238d7193 100644 --- a/neo/client/tests/testClientApp.py +++ b/neo/client/tests/testClientApp.py @@ -805,7 +805,7 @@ class ClientApplicationTests(NeoTestBase): Application._waitMessage = _waitMessage4 # first iteration : connection failed def _waitMessage2(app, conn=None, msg_id=None, handler=None): - app.primary_master_node = -1 + app.trying_master_node = None Application._waitMessage = _waitMessage3 # do nothing for the first call def _waitMessage1(app, conn=None, msg_id=None, handler=None): @@ -824,7 +824,6 @@ class ClientApplicationTests(NeoTestBase): self.assertTrue(self.all_passed) self.assertTrue(app.master_conn, neo.connection.MTClientConnection) self.assertTrue(app.pt.operational()) - self.assertEquals(len(app.nm.getNodeList()), 3) def test_askStorage(self): """ _askStorage is private but test it anyway """ -- 2.30.9