m1a2st commented on code in PR #24007:
URL: https://github.com/apache/kafka/pull/24007#discussion_r4572113054


##########
clients/src/test/java/org/apache/kafka/common/security/authenticator/SaslAuthenticatorTest.java:
##########
@@ -1287,9 +1286,7 @@ public void testInvalidMechanism() throws Exception {
 
         server = createEchoServer(securityProtocol);
         try {
-            createAndCheckClientConnectionFailure(securityProtocol, node);
-            fail("Did not generate exception prior to creating channel");
-        } catch (IOException expected) {
+            IOException expected = assertThrows(IOException.class, () -> 
createAndCheckClientConnectionFailure(securityProtocol, node));

Review Comment:
   Could you keep the original fail message?



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