harmadasg commented on code in PR #23199:
URL: https://github.com/apache/kafka/pull/23199#discussion_r3873626375
##########
streams/src/test/java/org/apache/kafka/streams/kstream/internals/suppress/KTableSuppressProcessorTest.java:
##########
@@ -424,12 +420,11 @@ public void
suppressShouldShutDownWhenOverRecordCapacity() {
context.setRecordMetadata("", 0, 1L);
context.setTimestamp(timestamp);
- try {
+ final Throwable exception = assertThrows(StreamsException.class, () ->
{
harness.processor.process(new Record<>("dummyKey", value,
timestamp));
fail("expected an exception");
Review Comment:
thanks done, also included the the exception message comparison in the
`assertThrows` part to be more compact and readable
--
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]