Commit 761860a2 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Add a test to ensure election success with many master nodes.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1539 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent c5f970c9
......@@ -63,6 +63,17 @@ class ClusterTests(NEOFunctionalTest):
self.neo.killStorage()
self.neo.expectClusterRunning()
def testElectionWithManyMasters(self):
MASTER_COUNT = 20
self.neo = NEOCluster(['test_neo1', 'test_neo2'], port_base=20000,
partitions=10, replicas=0, master_node_count=MASTER_COUNT,
temp_dir=self.getTempDirectory())
neoctl = self.neo.getNEOCTL()
self.neo.start()
self.neo.expectClusterRunning()
self.neo.expectAllMasters(MASTER_COUNT)
self.neo.expectOudatedCells(0)
def test_suite():
return unittest.makeSuite(ClusterTests)
......
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