nastra commented on code in PR #18910:
URL: https://github.com/apache/iceberg/pull/18910#discussion_r4697216424


##########
core/src/test/java/org/apache/iceberg/rest/TestRESTCatalog.java:
##########
@@ -2110,25 +2111,34 @@ public void 
testCatalogTokenRefreshFailsAndUsesCredentialForRefresh(String oauth
                       any(),
                       any());
 
-              // verify the first token exchange - since an exception is 
thrown, we're performing
-              // retries
-              Mockito.verify(adapter, times(2))
+              // the first exchange with the catalog token throws. The retry 
waits at least 100ms,

Review Comment:
   I'm not sure I understand why this test is being changed. The purpose of 
this test was to verify a very specific scenario, which is now being changed. 
Please take a closer look at the things that are being set in the tests to make 
sure we don't have to update verifications



-- 
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