Skip to content

Commit 5b4f256

Browse files
committed
fix test
1 parent ff39fa7 commit 5b4f256

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

paimon-core/src/test/java/org/apache/paimon/catalog/CatalogTestBase.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@
4747
import org.apache.paimon.table.sink.CommitMessage;
4848
import org.apache.paimon.table.source.ReadBuilder;
4949
import org.apache.paimon.table.source.TableScan;
50-
import org.apache.paimon.table.system.AllTableOptionsTable;
51-
import org.apache.paimon.table.system.CatalogOptionsTable;
5250
import org.apache.paimon.types.DataField;
5351
import org.apache.paimon.types.DataTypes;
5452
import org.apache.paimon.types.RowType;
@@ -85,6 +83,7 @@
8583
import static org.apache.paimon.catalog.Catalog.SYSTEM_DATABASE_NAME;
8684
import static org.apache.paimon.table.system.AllTableOptionsTable.ALL_TABLE_OPTIONS;
8785
import static org.apache.paimon.table.system.CatalogOptionsTable.CATALOG_OPTIONS;
86+
import static org.apache.paimon.table.system.SystemTableLoader.GLOBAL_SYSTEM_TABLES;
8887
import static org.apache.paimon.testutils.assertj.PaimonAssertions.anyCauseMatches;
8988
import static org.assertj.core.api.Assertions.assertThat;
9089
import static org.assertj.core.api.Assertions.assertThatCode;
@@ -1044,10 +1043,7 @@ public void testGetTable() throws Exception {
10441043
() -> catalog.getTable(Identifier.create(SYSTEM_DATABASE_NAME, "1111")));
10451044

10461045
List<String> sysTables = catalog.listTables(SYSTEM_DATABASE_NAME);
1047-
assertThat(sysTables)
1048-
.containsExactlyInAnyOrder(
1049-
AllTableOptionsTable.ALL_TABLE_OPTIONS,
1050-
CatalogOptionsTable.CATALOG_OPTIONS);
1046+
assertThat(sysTables).containsAll(GLOBAL_SYSTEM_TABLES);
10511047

10521048
assertThat(catalog.listViews(SYSTEM_DATABASE_NAME)).isEmpty();
10531049
}

0 commit comments

Comments
 (0)