tomtongue commented on code in PR #9927: URL: https://github.com/apache/iceberg/pull/9927#discussion_r1525704276
########## core/src/test/java/org/apache/iceberg/TestTableMetadata.java: ########## @@ -1640,56 +1506,55 @@ public void testUpgradeV1MetadataToV2ThroughTableProperty() { meta.replaceProperties( ImmutableMap.of(TableProperties.FORMAT_VERSION, "2", "key2", "val2")); - Assert.assertEquals( - "format version should be configured based on the format-version key", - 2, - meta.formatVersion()); - Assert.assertEquals( - "should not contain format-version but should contain new properties", - ImmutableMap.of("key2", "val2"), - meta.properties()); + assertThat(meta.formatVersion()) + .as("format version should be configured based on the format-version key") + .isEqualTo(2); + assertThat(meta.properties()) + .as("should not contain format-version but should contain new properties") + .containsEntry("key2", "val2"); Review Comment: Thanks for the comment on this. Change this part with `containsExactly` (I believe this tests if there's only one key-value pair and no format version there). If this still needs to be fixed, please let me know. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org