hysuuuu commented on code in PR #23485:
URL: https://github.com/apache/kafka/pull/23485#discussion_r4222713347


##########
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:
   Extracted it into a helper method in b1114d9. Thanks!



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

Reply via email to