This is an automated email from the ASF dual-hosted git repository.
etudenhoefner pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/master by this push:
new 814a22f7bc Tests: Update catalog test assertion to be more permissive
(#7789)
814a22f7bc is described below
commit 814a22f7bca358850ed30bef930f1a7e88342d87
Author: Bryan Keller <[email protected]>
AuthorDate: Tue Jun 6 23:14:42 2023 -0700
Tests: Update catalog test assertion to be more permissive (#7789)
* Tests: Update catalog test assertion to be more permissive
* another assertion update
---
core/src/test/java/org/apache/iceberg/catalog/CatalogTests.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 b890e75b23..96be4f935e 100644
--- a/core/src/test/java/org/apache/iceberg/catalog/CatalogTests.java
+++ b/core/src/test/java/org/apache/iceberg/catalog/CatalogTests.java
@@ -1918,7 +1918,7 @@ public abstract class CatalogTests<C extends Catalog &
SupportsNamespaces> {
: "Table already exists";
Assertions.assertThatThrownBy(createOrReplace::commitTransaction)
.isInstanceOf(AlreadyExistsException.class)
- .hasMessage(expectedMessage);
+ .hasMessageStartingWith(expectedMessage);
// validate the concurrently created table is unmodified
Table table = catalog.loadTable(TABLE);
@@ -2484,7 +2484,7 @@ public abstract class CatalogTests<C extends Catalog &
SupportsNamespaces> {
() ->
catalog().buildTable(TableIdentifier.of("non-existing",
"table"), SCHEMA).create())
.isInstanceOf(NoSuchNamespaceException.class)
- .hasMessageEndingWith("Namespace does not exist: non-existing");
+ .hasMessageContaining("Namespace does not exist: non-existing");
}
private static void assertEmpty(String context, Catalog catalog, Namespace
ns) {