Enable rspec-retry on system and request specs (#19103)
This commit is contained in:
parent
2ade00e64e
commit
5e792ca0b2
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue