diff --git a/spec/integration/client_side_encryption/custom_endpoint_spec.rb b/spec/integration/client_side_encryption/custom_endpoint_spec.rb index e810f3ece4..a08605641c 100644 --- a/spec/integration/client_side_encryption/custom_endpoint_spec.rb +++ b/spec/integration/client_side_encryption/custom_endpoint_spec.rb @@ -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'