skytin1004 commented on code in PR #7861:
URL: https://github.com/apache/iceberg/pull/7861#discussion_r1238041612


##########
core/src/test/java/org/apache/iceberg/hadoop/TestCachingCatalog.java:
##########
@@ -291,9 +292,10 @@ public void 
testCacheExpirationEagerlyRemovesMetadataTables() throws IOException
     Arrays.stream(metadataTables(tableIdent))
         .forEach(
             metadataTable ->
-                Assert.assertFalse(
-                    "When a data table expires, its metadata tables should 
expire regardless of age",
-                    catalog.cache().asMap().containsKey(metadataTable)));
+                
Assertions.assertThat(catalog.cache().asMap().containsKey(metadataTable))

Review Comment:
   I modified the code based on the method you suggested. 
`.doesNotContainKeys(metadataTable)`



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to