Prechádzať zdrojové kódy

Fixes broken test case

Ask Solem 8 rokov pred
rodič
commit
4a41213b66
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  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.request.id = 'fb'
         mytask.send_event('task-foo', id=3122)
         mytask.send_event('task-foo', id=3122)
         mytask.app.events.default_dispatcher().send.assert_called_with(
         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):
     def test_replace(self):
         sig1 = Mock(name='sig1')
         sig1 = Mock(name='sig1')