MCPcopy
hub / github.com/celery/celery / test_multithread_producer

Method test_multithread_producer

t/integration/test_tasks.py:113–120  ·  view source on GitHub ↗

Testing multiple threads calling tasks.

(self, manager)

Source from the content-addressed store, hash-verified

111 @flaky
112 @pytest.mark.skip(reason="Broken test")
113 def test_multithread_producer(self, manager):
114 """Testing multiple threads calling tasks."""
115 set_multiprocessing_start_method()
116
117 from multiprocessing.pool import ThreadPool
118 pool = ThreadPool(20)
119 ret = pool.map(_producer, range(120))
120 assert list(ret) == list(range(120))
121
122 @flaky
123 def test_ignore_result(self, manager):

Callers

nothing calls this directly

Calls 2

mapMethod · 0.45

Tested by

no test coverage detected