Skip to content

Commit

Permalink
Retry refused real requests when running webmock specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
bblimke committed Aug 14, 2023
1 parent 1a3a484 commit e7fcd15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/acceptance/webmock_shared.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
end

around(:each, net_connect: true) do |ex|
ex.run_with_retry retry: 2, exceptions_to_retry: [client_timeout_exception_class]
ex.run_with_retry retry: 2, exceptions_to_retry: [client_timeout_exception_class, connection_refused_exception_class]
end

include_context "allowing and disabling net connect", *adapter_info
Expand Down

0 comments on commit e7fcd15

Please sign in to comment.