'When an update is received while the convergence loop is sleeping, we
don\'t want any discovery to happen since that will lead to load on
external resources.'

def test_status_update_while_sleeping_no_discovery(self):

    loop = self.convergence_iteration(later_actions=[NO_OP, NO_OP])
    remaining_discover_calls = len(self.deployer.local_states)
    loop.receive(_ClientStatusUpdate(client=self.make_amp_client([self.local_state]), configuration=self.configuration, state=self.cluster_state))
    self.assertEqual((remaining_discover_calls - len(self.deployer.local_states)), 0)
