Only retry specs when running on CI

pull/3626/head
Stefan Botzenhart 9 years ago
parent 43182a99f0
commit a8cc5687cf
  1. 9
      spec/support/rspec_retry.rb

@ -35,8 +35,11 @@ RSpec.configure do |config|
# show exception that triggers a retry if verbose_retry is set to true
config.display_try_failure_messages = true
# retry every failure by default
config.default_retry_count = 2
# We only want to retry when running on CI servers
if ENV['CI']
# retry every failure by default
config.default_retry_count = 2
config.default_sleep_interval = 5
config.default_sleep_interval = 5
end
end

Loading…
Cancel
Save