Esempio n. 1
0
def committed1(looper, nodeSet, client1, prepared1, faultyNodes):
    checkCommited(looper,
                  nodeSet,
                  prepared1,
                  range(getNoInstances(len(nodeSet))),
                  faultyNodes)
    return prepared1
def testNumOfCommitMsgsWithFPlusOneFaults(afterElection, looper,
                                          nodeSet, prepared1, noRetryReq):
    with pytest.raises(AssertionError):
        checkCommited(looper,
                      nodeSet,
                      prepared1,
                      range(getNoInstances(len(nodeSet))),
                      faultyNodes)
def testNumOfCommitMsgsWithFPlusOneFaults(afterElection, looper,
                                          nodeSet, prepared1):
    with pytest.raises(AssertionError):
        checkCommited(looper,
                      nodeSet,
                      prepared1,
                      range(getNoInstances(len(nodeSet))),
                      faultyNodes)
Esempio n. 4
0
def committed1(looper, nodeSet, client1, prepared1, faultyNodes):
    checkCommited(looper, nodeSet, prepared1,
                  range(getNoInstances(len(nodeSet))), faultyNodes)
    return prepared1