diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 80c5056c2..a15ec155a 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -146,10 +146,20 @@ RSpec.configure do |config| allow(FeatureFlag).to receive(:enabled?).with(:connect).and_return(true) end + config.verbose_retry = true + config.around(:each, :flaky) do |ex| ex.run_with_retry retry: 3 end + config.around(:each, type: :request) do |ex| + ex.run_with_retry retry: 3 + end + + config.around(:each, type: :system) do |ex| + ex.run_with_retry retry: 3 + end + config.around(:each, throttle: true) do |example| Rack::Attack.enabled = true example.run