def waitForViewChange(looper, txnPoolNodeSet, expectedViewNo=None, customTimeout=None):
    '\n    Waits for nodes to come to same view.\n    Raises exception when time is out\n    '
    timeout = (customTimeout or waits.expectedPoolElectionTimeout(len(txnPoolNodeSet)))
    return looper.run(eventually(checkViewNoForNodes, txnPoolNodeSet, expectedViewNo, timeout=timeout))
Waits for nodes to come to same view.
Raises exception when time is out
def waitForViewChange(looper, txnPoolNodeSet, expectedViewNo=None, customTimeout=None):
    '\n    Waits for nodes to come to same view.\n    Raises exception when time is out\n    '
    timeout = (customTimeout or waits.expectedPoolElectionTimeout(len(txnPoolNodeSet)))
    return looper.run(eventually(checkViewNoForNodes, txnPoolNodeSet, expectedViewNo, timeout=timeout))