Adds max rss test

This commit is contained in:
Ilan Steemers
2020-07-08 22:52:07 +02:00
parent 572f810651
commit 0095a93b45
+1 -2
View File
@@ -358,8 +358,7 @@ def test_max_rss(broker, monkeypatch):
async_task('django_q.tests.tasks.multiply', 2, 2, broker=broker)
task_queue = Queue()
result_queue = Queue()
# push two tasks
pusher(task_queue, stop_event, broker=broker)
# push the task
pusher(task_queue, stop_event, broker=broker)
# worker should exit on recycle
worker(task_queue, result_queue, Value('f', -1))