From a1ee46688292617213233786bc44056e1a2b1a76 Mon Sep 17 00:00:00 2001 From: Selwin Ong Date: Sun, 7 Jun 2020 18:09:17 +0700 Subject: [PATCH] worker.work() should be tested with burst=True --- tests/test_worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_worker.py b/tests/test_worker.py index 088213d6..e78d38b9 100644 --- a/tests/test_worker.py +++ b/tests/test_worker.py @@ -111,13 +111,13 @@ class TestWorker(RQTestCase): fooq, barq = Queue('foo'), Queue('bar') w = Worker([fooq, barq]) self.assertEqual( - w.work(burst=True), False, + w.work(burst=True, with_scheduler=True), False, 'Did not expect any work on the queue.' ) fooq.enqueue(say_hello, name='Frank') self.assertEqual( - w.work(burst=True), True, + w.work(burst=True, with_scheduler=True), True, 'Expected at least some work done.' )