chia7712 commented on code in PR #17991:
URL: https://github.com/apache/kafka/pull/17991#discussion_r1864974193
##########
clients/src/test/java/org/apache/kafka/test/TestUtils.java:
##########
@@ -563,7 +563,7 @@ public static <T extends Throwable> void assertFutureThrows(
String expectedMessage
) {
T receivedException = assertFutureThrows(future,
expectedCauseClassApiException);
- assertEquals(expectedMessage, receivedException.getMessage());
+ assertTrue(receivedException.getMessage().contains(expectedMessage));
Review Comment:
Maybe we can remove duplicate `assertFutureThrows` and `assertFutureThrows`
from this utils too?
--
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]