Remove rspec-retry
This commit is contained in:
parent
44f4a93430
commit
d0890cc8a7
4 changed files with 1 additions and 12 deletions
|
@ -1,7 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rspec/retry'
|
||||
|
||||
unless ENV['DISABLE_SIMPLECOV'] == 'true'
|
||||
require 'simplecov' # Configuration details loaded from .simplecov
|
||||
end
|
||||
|
@ -37,10 +35,6 @@ RSpec.configure do |config|
|
|||
FileUtils.rm_rf(Dir[Rails.root.join('spec', 'test_files')])
|
||||
end
|
||||
|
||||
# for RSpec::Retry
|
||||
config.verbose_retry = true
|
||||
config.display_try_failure_messages = true
|
||||
|
||||
# Use the GitHub Annotations formatter for CI
|
||||
if ENV['GITHUB_ACTIONS'] == 'true' && ENV['GITHUB_RSPEC'] == 'true'
|
||||
require 'rspec/github'
|
||||
|
|
|
@ -16,7 +16,7 @@ describe PollExpirationNotifyWorker do
|
|||
end
|
||||
|
||||
context 'when poll is not expired' do
|
||||
it 'requeues job', retry: 10 do
|
||||
it 'requeues job' 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