From 1ee817b440ec15e876d1d95791e9c1096c8814c7 Mon Sep 17 00:00:00 2001 From: Eduard Tudenhoefner Date: Tue, 10 Oct 2023 10:44:04 +0200 Subject: [PATCH] Core: Use more permissive check when registering existing table --- core/src/test/java/org/apache/iceberg/catalog/CatalogTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/org/apache/iceberg/catalog/CatalogTests.java b/core/src/test/java/org/apache/iceberg/catalog/CatalogTests.java index 61fbe39aea2d..835115ad4d9c 100644 --- a/core/src/test/java/org/apache/iceberg/catalog/CatalogTests.java +++ b/core/src/test/java/org/apache/iceberg/catalog/CatalogTests.java @@ -2697,7 +2697,7 @@ public void testRegisterExistingTable() { String metadataLocation = ops.current().metadataFileLocation(); Assertions.assertThatThrownBy(() -> catalog.registerTable(identifier, metadataLocation)) .isInstanceOf(AlreadyExistsException.class) - .hasMessage("Table already exists: a.t1"); + .hasMessageStartingWith("Table already exists: a.t1"); Assertions.assertThat(catalog.dropTable(identifier)).isTrue(); }