Explorar el Código

Fixes broken test case

Ask Solem hace 8 años
padre
commit
4a41213b66
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      t/unit/tasks/test_tasks.py

+ 2 - 1
t/unit/tasks/test_tasks.py

@@ -408,7 +408,8 @@ class test_tasks(TasksCase):
         mytask.request.id = 'fb'
         mytask.send_event('task-foo', id=3122)
         mytask.app.events.default_dispatcher().send.assert_called_with(
-            'task-foo', uuid='fb', id=3122)
+            'task-foo', uuid='fb', id=3122,
+            retry=True, retry_policy=self.app.conf.task_publish_retry_policy)
 
     def test_replace(self):
         sig1 = Mock(name='sig1')