Skip to content

Commit

Permalink
Add comment about test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mhenrixon committed Jan 7, 2021
1 parent 1d21d8a commit 6902cf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/sidekiq_unique_jobs/orphans/reaper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
end

before do
# Create the lock key without having a matching digest in a job hash
# (this is needed because we want to setup the test conditions manually)
# (find this to be more sensible defaults)
SidekiqUniqueJobs.disable!
lock
end
Expand Down

0 comments on commit 6902cf0

Please sign in to comment.