diff --git a/Gemfile b/Gemfile index b60e3afe55..98334ba0f6 100644 --- a/Gemfile +++ b/Gemfile @@ -141,8 +141,6 @@ group :test do # Stub web requests for specs gem 'webmock', '~> 3.18' - - gem 'rspec-retry', '>= 0.6.2' end group :development do diff --git a/Gemfile.lock b/Gemfile.lock index 32d98e1337..1fc270b9b8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -639,8 +639,6 @@ GEM rspec-expectations (~> 3.13) rspec-mocks (~> 3.13) rspec-support (~> 3.13) - rspec-retry (0.6.2) - rspec-core (> 3.3) rspec-sidekiq (4.2.0) rspec-core (~> 3.0) rspec-expectations (~> 3.0) @@ -920,7 +918,6 @@ DEPENDENCIES rqrcode (~> 2.2) rspec-github (~> 2.4) rspec-rails (~> 6.0) - rspec-retry (>= 0.6.2) rspec-sidekiq (~> 4.0) rubocop rubocop-capybara diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3e4ef03237..8a01792a19 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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' diff --git a/spec/workers/poll_expiration_notify_worker_spec.rb b/spec/workers/poll_expiration_notify_worker_spec.rb index 02fc1e5f45..4bd90270d8 100644 --- a/spec/workers/poll_expiration_notify_worker_spec.rb +++ b/spec/workers/poll_expiration_notify_worker_spec.rb @@ -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)