Enable rspec-retry on system and request specs (#19103)

This commit is contained in:
Mac Siri 2023-02-13 09:51:37 -05:00 committed by GitHub
parent 2ade00e64e
commit 5e792ca0b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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