Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
selwin committed Oct 29, 2024
1 parent 00dbe23 commit 2fd108e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class WorkerCallbackTestCase(RQTestCase):
def test_success_callback(self):
"""Test success callback is executed only when job is successful"""
queue = Queue(connection=self.testconn)
worker = SimpleWorker([queue], connection=self.testconn)
worker = SimpleWorker(['default', 'high'], connection=self.testconn)

job = queue.enqueue(say_hello, on_success=save_result)

Expand All @@ -71,7 +71,7 @@ def test_success_callback(self):
def test_erroneous_success_callback(self):
"""Test exception handling when executing success callback"""
queue = Queue(connection=self.testconn)
worker = Worker([queue], connection=self.testconn)
worker = Worker(['default', 'high'], connection=self.testconn)

# If success_callback raises an error, job will is considered as failed
job = queue.enqueue(say_hello, on_success=erroneous_callback)
Expand Down

0 comments on commit 2fd108e

Please sign in to comment.