'When a convergence loop in the sleeping state receives a status update
the next iteration of the event loop uses it. The event loop is
woken up if the update results in an exception, on the theory that
given lack of accurate information we should err on the side of
being more responsive.'

@capture_logging((lambda self, logger: self.assertEqual(len(logger.flushTracebacks(CustomException)), 1)))
def test_convergence_iteration_status_update_wakeup_error(self, logger):

    loop = self.convergence_iteration()
    self.deployer.calculated_actions[0] = CustomException()
    self.assert_woken_up(loop)
