Browse Source

Fixes tests

Ask Solem 11 năm trước cách đây
mục cha
commit
5bf8927b44
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      celery/tests/concurrency/test_prefork.py

+ 2 - 0
celery/tests/concurrency/test_prefork.py

@@ -233,6 +233,8 @@ class test_ResultHandler(PoolCase):
             on_job_ready=Mock(),
         )
         self.assertTrue(x)
+        hub = Mock(name='hub')
+        x.register_with_event_loop(hub)
         x.on_state_change = Mock()
         proc = x.fileno_to_outq[3] = Mock()
         reader = proc.outq._reader