mirror of https://github.com/rq/rq.git
Ensure intermediate_queue is empty before running tests
This commit is contained in:
parent
7d4c7eee30
commit
3ca348049f
|
@ -57,6 +57,9 @@ class TestWorker(RQTestCase):
|
|||
|
||||
intermediate_queue = IntermediateQueue(queue.key, connection=self.connection)
|
||||
|
||||
# Ensure that the intermediate queue is empty
|
||||
self.connection.delete(intermediate_queue.key)
|
||||
|
||||
# Job ID is not in intermediate queue
|
||||
self.assertEqual(intermediate_queue.get_job_ids(), [])
|
||||
job, queue = Queue.dequeue_any([queue], timeout=None, connection=self.testconn)
|
||||
|
|
Loading…
Reference in New Issue