mock metrics related funcs
@@ -36,6 +36,8 @@ def test_send_IC_if_master_degraded(fake_node,
fake_node._update_new_ordered_reqs_count = lambda: True
fake_node.sendNodeRequestSpike = lambda: True
fake_monitor.isMasterDegraded = lambda: True
+ fake_monitor.getThroughputs = lambda a: (None, None)
+ fake_monitor.getAvgLatency = lambda *a: {}
fake_node.view_changer.on_master_degradation = lambda: True
fake_node.monitor = fake_monitor
fake_node.checkPerformance = functools.partial(testNodeClass.checkPerformance, fake_node)
