def electTieFixture(startedNodes: TestNodeSet): A, B, C, D = startedNodes.nodes.values() for node in [C, D]: node.delaySelfNomination(10) delay(Nomination, frm=A, to=(B, D), howlong=5) delay(Nomination, frm=B, to=(A, C), howlong=5) delay(Nomination, frm=C, to=(D, B), howlong=5) delay(Nomination, frm=D, to=(C, A), howlong=5)
def setup(nodeSet): A, B, C, D = nodeSet.nodes.values() # type: TestNode delay(Propagate, frm=[B, C, D], to=A, howlong=5)
def setup(nodeSet): A, B, C, D = nodeSet.nodes.values() A.clientIbStasher.delay(lambda x: 5) delay(Propagate, frm=[C, D], to=A, howlong=10)