mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user