Set Capybara retry count to 3 and remove conditional

This is a slippery slope and there's perfectly reasonable arguments against doing this, but on a practical level I think retrying the occasional flaky spec (and adding an extra 10 seconds or so on to the build time) is categorically better than failing the build and having to restart the whole thing (potentially multiple times).
This commit is contained in:
Matt-Yorkley
2021-06-10 11:39:05 +01:00
parent 2c1ffa929c
commit 50b5fc7545

View File

@@ -98,12 +98,10 @@ RSpec.configure do |config|
# rspec-rails.
config.infer_base_class_for_anonymous_controllers = false
# Retry
# Show retries in test output
config.verbose_retry = true
# Try twice (retry once)
config.default_retry_count = 2
# Only retry when Selenium raises Net::ReadTimeout
config.exceptions_to_retry = [Net::ReadTimeout]
# Set maximum retry count
config.default_retry_count = 3
# Force colored output, whether or not the output is a TTY
config.color_mode = :on