seokmo-yoo-dev commented on code in PR #24007:
URL: https://github.com/apache/kafka/pull/24007#discussion_r4581654218
##########
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:
Hi @m1a2st , thank you for your review! 👍
I changed the code to keep the original fail message,
including the same pattern in `OAuthBearerSaslClientTest`.
CI will be soon re-runned.
- commit:
https://github.com/apache/kafka/pull/24007/changes/2851bf79a5c4fcf153bb45c9dc31badcf98d484f
--
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]