def tconf(tconf):
    """
    Patch config so that monitor won't start view change unexpectedly.
    Also increase minimum catchup timeout to some big value to fail tests
    that attempt to wait for view change.
    """
    with view_change_timeout(tconf, 300), perf_monitor_disabled(tconf):
        yield tconf
def tconf(tconf):
    """
    Patch config so that monitor won't start view change unexpectedly.
    Also increase minimum catchup timeout to some big value to fail tests
    that attempt to wait for view change.
    """
    with view_change_timeout(tconf, 300), perf_monitor_disabled(tconf):
        yield tconf
示例#3
0
def tconf(tconf):
    """
    Patch config so that monitor won't start view change unexpectedly
    """
    with perf_monitor_disabled(tconf):
        yield tconf
def tconf(tconf):
    """
    Patch config so that monitor won't start view change unexpectedly
    """
    with perf_monitor_disabled(tconf):
        yield tconf
示例#5
0
def tconf(tconf):
    with view_change_timeout(tconf, NEW_VIEW_TIMEOUT), \
         perf_monitor_disabled(tconf):
        yield tconf
def tconf(tconf):
    with view_change_timeout(tconf, VIEW_CHANGE_TIMEOUT), \
         perf_monitor_disabled(tconf):
        yield tconf
def tconf(tconf):
    with perf_monitor_disabled(tconf):
        yield tconf
示例#8
0
def disable_view_change_config(tconf):
    with perf_monitor_disabled(tconf):
        yield tconf
def tconf(tconf):
    with perf_monitor_disabled(tconf):
        yield tconf