@pytest.fixture(scope='module')
def view_change_in_progress(view_setup, txnPoolNodeSet):
    for node in txnPoolNodeSet:
        node.view_changer.propagate_primary = False
        node.view_changer.view_no += 1
        node.view_changer.view_change_in_progress = True
        node.view_changer.previous_master_primary = node.master_primary_name
        node.view_changer.set_defaults()
        for (inst_id, replica) in node.replicas.items():
            replica.primaryName = None
@pytest.fixture(scope='module')
def view_change_in_progress(view_setup, txnPoolNodeSet):
    for node in txnPoolNodeSet:
        node.view_changer.propagate_primary = False
        node.view_changer.view_no += 1
        node.view_changer.view_change_in_progress = True
        node.view_changer.previous_master_primary = node.master_primary_name
        node.view_changer.set_defaults()
        for (inst_id, replica) in node.replicas.items():
            replica.primaryName = None