Merge pull request #6831 from Matt-Yorkley/netread-timeout

Add retry handling for flaky spec timeouts
This commit is contained in:
Pau Pérez Fabregat
2021-02-08 19:26:01 +01:00
committed by GitHub

View File

@@ -101,6 +101,10 @@ RSpec.configure do |config|
# Retry
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]
# Force use of expect (over should)
config.expect_with :rspec do |expectations|