Skip to content

Commit

Permalink
look for Socket::ResolutionError, too (Ruby 3.3+)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed Sep 24, 2024
1 parent 5b94972 commit c324b69
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@
end

let(:error_regex) do
/SocketError: getaddrinfo:/
# Ruby 3.3+ raises Socket::ResolutionError here, instead of a bare SocketError
/Socket(?:::Resolution)?Error: getaddrinfo:/
end

it_behaves_like 'raising a KMS error'
Expand Down

0 comments on commit c324b69

Please sign in to comment.