Skip to content

Commit

Permalink
fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
FANNG1 committed Nov 7, 2024
1 parent dcfdba2 commit 03b3544
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

import static org.apache.paimon.testutils.assertj.PaimonAssertions.anyCauseMatches;
import static org.assertj.core.api.Assertions.assertThat;
Expand Down Expand Up @@ -119,8 +120,8 @@ public void testDuplicatedDatabaseAfterCreatingTable() throws Exception {
catalog.createTable(identifier, schema, false);

List<String> databases = catalog.listDatabases();
Assertions.assertEquals(1, databases.size());
Assertions.assertEquals("test_db", databases.get(0));
List<String> distinctDatabases = databases.stream().distinct().collect(Collectors.toList());
Assertions.assertEquals(distinctDatabases.size(), databases.size());
}

@Test
Expand Down

0 comments on commit 03b3544

Please sign in to comment.