Explorar el Código

Tests passing

Ask Solem hace 11 años
padre
commit
667f64bf1b
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      celery/tests/worker/test_loops.py

+ 3 - 0
celery/tests/worker/test_loops.py

@@ -36,6 +36,9 @@ class X(object):
                          heartbeat,
                          Mock(name='clock')]
         self.connection.supports_heartbeats = True
+        self.connection.get_heartbeat_interval.side_effect = (
+            lambda: self.heartbeat
+        )
         self.consumer.callbacks = []
         self.obj.strategies = {}
         self.connection.connection_errors = (socket.error, )