Skip to content

Commit

Permalink
Retry capybara tests on specific errors, better output
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-illi committed Aug 24, 2023
1 parent 2f469a9 commit 6f5e0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/support/retry_on_flaky_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def capture_exceptions
yield
rescue => err
if (tries +=1) <= max_tries && error_classes.include?(err.class)
puts "Got #{err.message} Error, trying again #{tries}. time"
puts "Got #{err.class.name} Error, trying again #{tries}. time"
retry
else
super { raise err }
Expand Down

0 comments on commit 6f5e0e0

Please sign in to comment.