Skip to content

Commit

Permalink
fix: invoke perform_one, but Queues not delete the job (#6166)
Browse files Browse the repository at this point in the history
Co-authored-by: Sun Yubo <[email protected]>
  • Loading branch information
hans2003 and Sun Yubo authored Jan 17, 2024
1 parent 7df2843 commit 7302de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/testing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def drain
def perform_one
raise(EmptyQueueError, "perform_one called with empty job queue") if jobs.empty?
next_job = jobs.first
Queues.delete_for(next_job["jid"], queue, to_s)
Queues.delete_for(next_job["jid"], next_job["queue"], to_s)
process_job(next_job)
end

Expand Down

0 comments on commit 7302de4

Please sign in to comment.