adutra commented on code in PR #12582: URL: https://github.com/apache/iceberg/pull/12582#discussion_r2005026368
########## aws/src/test/java/org/apache/iceberg/aws/TestRESTSigV4AuthManager.java: ########## @@ -132,16 +131,16 @@ void catalogSession() { @Test void contextualSession() { - AuthManager delegate = Mockito.mock(AuthManager.class); - when(delegate.catalogSession(any(), any())) - .thenReturn(Mockito.mock(OAuth2Util.AuthSession.class)); - when(delegate.contextualSession(any(), any())) - .thenReturn(Mockito.mock(OAuth2Util.AuthSession.class)); + AuthManager delegate = Review Comment: The tests failed to catch the issue because the delegate was a mock. I replaced with an actual manager, and now the tests are properly exercising the delegate, including the session cache. -- 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