chia7712 commented on code in PR #23485:
URL: https://github.com/apache/kafka/pull/23485#discussion_r4222338653
##########
clients/src/test/java/org/apache/kafka/common/security/authenticator/SaslAuthenticatorTest.java:
##########
@@ -1733,7 +1735,9 @@ public void
testCannotReauthenticateWithDifferentMechanism() throws Exception {
* to sleep long enough so that the next write will trigger a
re-authentication.
*/
delay((long) (CONNECTIONS_MAX_REAUTH_MS_VALUE * 1.1));
- assertThrows(AssertionFailedError.class, () ->
checkClientConnection(node));
+ AssertionFailedError e = assertThrows(AssertionFailedError.class, ()
-> checkClientConnection(node));
Review Comment:
This seems identical to the other test. Could you strip out the duplicate
code with a helper method?
--
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]