Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Jan 24, 2025
1 parent 766d516 commit c3c2dfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions worker/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
class MockAsyncResult:
def __init__(self, celery_task_id, result = None):
self.celery_task_id = celery_task_id
self.state = "PENDING"

if result is None:
if celery_task_id == 'bogus':
self.result = None
Expand Down

0 comments on commit c3c2dfb

Please sign in to comment.