diff --git a/aws/src/integration/java/org/apache/iceberg/aws/TestDefaultAwsClientFactory.java b/aws/src/integration/java/org/apache/iceberg/aws/TestDefaultAwsClientFactory.java index b69b24583f4f..60c06b1f08d7 100644 --- a/aws/src/integration/java/org/apache/iceberg/aws/TestDefaultAwsClientFactory.java +++ b/aws/src/integration/java/org/apache/iceberg/aws/TestDefaultAwsClientFactory.java @@ -55,7 +55,7 @@ public void testS3FileIoEndpointOverride() { AssertHelpers.assertThrowsCause( "Should refuse connection to unknown endpoint", SdkClientException.class, - "Unable to execute HTTP request: unknown", + "Unable to execute HTTP request: bucket.unknown", () -> s3Client.getObject(GetObjectRequest.builder().bucket("bucket").key("key").build())); }