Skip to content

Commit

Permalink
add assertion in worker's test for max_backoff_delay_seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
amamd07 committed Jan 22, 2025
1 parent f68ac2d commit e097d5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def test_worker_init(self, mock_db, *_):
self.assertEqual(worker.sleep_delay, 10)
self.assertEqual(worker.max_attempts, 3)
self.assertEqual(worker.max_run_time, 3600)
self.assertEqual(worker.max_backoff_delay_seconds, 60)
self.assertEqual(worker.queue_names, 'default')
self.assertEqual(worker.name, 'host:localhost pid:1234')
self.assertIsNone(worker.extra_delayed_job_fields)
Expand Down

0 comments on commit e097d5b

Please sign in to comment.