Fix poll expiration notify worker spec sometimes return error
This commit is contained in:
parent
3be796adf8
commit
88339b3657
4 changed files with 12 additions and 1 deletions
|
@ -22,7 +22,7 @@ describe PollExpirationNotifyWorker do
|
|||
end
|
||||
|
||||
context 'when poll is not expired' do
|
||||
it 'requeues job' do
|
||||
it 'requeues job', retry: 10 do
|
||||
worker.perform(poll.id)
|
||||
expect(described_class.sidekiq_options_hash['lock']).to be :until_executing
|
||||
expect(described_class).to have_enqueued_sidekiq_job(poll.id).at(poll.expires_at + 5.minutes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue