瀏覽代碼

Tests passing

Ask Solem 12 年之前
父節點
當前提交
0b6464c7c6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      celery/tests/worker/test_worker.py

+ 2 - 0
celery/tests/worker/test_worker.py

@@ -1059,6 +1059,7 @@ class test_WorkController(AppCase):
 
     def test_Pool_crate_threaded(self):
         w = Mock()
+        w._conninfo.connection_errors = w._conninfo.channel_errors = ()
         w.pool_cls = Mock()
         w.use_eventloop = False
         pool = Pool(w)
@@ -1067,6 +1068,7 @@ class test_WorkController(AppCase):
     def test_Pool_create(self):
         from celery.worker.hub import BoundedSemaphore
         w = Mock()
+        w._conninfo.connection_errors = w._conninfo.channel_errors = ()
         w.hub = Mock()
         w.hub.on_init = []
         w.pool_cls = Mock()