diff --git a/paimon-core/src/test/java/org/apache/paimon/table/FileStoreTableTestBase.java b/paimon-core/src/test/java/org/apache/paimon/table/FileStoreTableTestBase.java index 16dac2046b33..f8b15c155f63 100644 --- a/paimon-core/src/test/java/org/apache/paimon/table/FileStoreTableTestBase.java +++ b/paimon-core/src/test/java/org/apache/paimon/table/FileStoreTableTestBase.java @@ -1425,10 +1425,7 @@ public void testDeleteTag() throws Exception { table.createTag("tag1", 1); table.deleteTag("tag1"); - assertThatThrownBy(() -> table.deleteTag("tag1")) - .satisfies( - anyCauseMatches( - IllegalArgumentException.class, "Tag 'tag1' doesn't exist.")); + assertThat(table.tagManager().tags().containsValue("tag1")).isFalse(); } @Test