Skip to content

Commit 603d0b7

Browse files
committed
Tests passing
1 parent 6e1e8e8 commit 603d0b7

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

celery/tests/concurrency/test_processes.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,10 @@ def test_apply_async(self):
161161
pool.apply_async(lambda x: x, (2, ), {})
162162

163163
def test_terminate_job(self):
164-
165-
@patch('celery.concurrency.processes._kill')
166-
def _do_test(_kill):
167-
pool = TaskPool(10)
168-
pool.terminate_job(1341)
169-
_kill.assert_called_with(1341, signal.SIGTERM)
170-
171-
_do_test()
164+
pool = TaskPool(10)
165+
pool._pool = Mock()
166+
pool.terminate_job(1341)
167+
pool._pool.terminate_job.assert_called_with(1341, None)
172168

173169
def test_grow_shrink(self):
174170
pool = TaskPool(10)

0 commit comments

Comments
 (0)