chickenchickenlove commented on code in PR #20159:
URL: https://github.com/apache/kafka/pull/20159#discussion_r2483002736
##########
clients/src/test/java/org/apache/kafka/clients/producer/internals/SenderTest.java:
##########
@@ -3908,6 +3922,22 @@ private void assertFutureFailure(Future<?> future,
Class<? extends Exception> ex
}
}
+ private void assertFutureFailure(Future<?> future, Class<? extends
Exception> expectedExceptionType,
+ Class<? extends Exception>
rootCauseExceptionType,
+ String rootCauseExceptionMessage)
+ throws InterruptedException {
+ assertTrue(future.isDone());
+ try {
+ future.get();
Review Comment:
It's better! Thanks for your comment. addressed it.
--
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]