Пример #1
0
 def _converge_all_groups(self, flags):
     return converge_all_groups(
         self.currently_converging, self.recently_converged,
         self.my_buckets, self.all_buckets,
         flags,
         3600,
         15,
         converge_one_group=self._converge_one_group)
Пример #2
0
    def test_no_log_on_no_groups(self):
        """When there's no work, no log message is emitted."""
        def converge_one_group(*args, **kwargs):
            1 / 0  # This should not be run

        result = converge_all_groups(
            self.currently_converging, self.recently_converged,
            self.my_buckets, self.all_buckets, [],
            3600, 15, converge_one_group=converge_one_group)
        self.assertEqual(sync_perform(_get_dispatcher(), result), None)