Browse Source

Fixes tests

Ask Solem 11 năm trước cách đây
mục cha
commit
ecae68588d
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 5 3
      celery/tests/bin/test_celeryd_detach.py

+ 5 - 3
celery/tests/bin/test_celeryd_detach.py

@@ -87,9 +87,11 @@ class test_Command(Case):
         detach.assert_called_with(
             path=x.execv_path, uid=None, gid=None,
             umask=0, fake=False, logfile='/var/log', pidfile='celeryd.pid',
-            argv=['-m', 'celery', 'worker', '-c', '1', '-lDEBUG',
-                  '--logfile=/var/log', '--pidfile=celeryd.pid',
-                  '--', '.disable_rate_limits=1'],
+            argv=x.execv_argv + [
+                '-c', '1', '-lDEBUG',
+                '--logfile=/var/log', '--pidfile=celeryd.pid',
+                '--', '.disable_rate_limits=1'
+            ],
         )
 
     @patch('celery.bin.celeryd_detach.detached_celeryd')