From c324b6943fa98d2eb08e3253703ab7784e4fd7fc Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Tue, 24 Sep 2024 08:53:30 -0600 Subject: [PATCH] look for Socket::ResolutionError, too (Ruby 3.3+) --- .../integration/client_side_encryption/custom_endpoint_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'