chia7712 commented on code in PR #23199:
URL: https://github.com/apache/kafka/pull/23199#discussion_r3882072369
##########
streams/src/test/java/org/apache/kafka/streams/kstream/internals/suppress/KTableSuppressProcessorTest.java:
##########
@@ -448,39 +440,17 @@ public void suppressShouldShutDownWhenOverByteCapacity() {
context.setRecordMetadata("", 0, 1L);
context.setTimestamp(1L);
- try {
- harness.processor.process(new Record<>("dummyKey", value,
timestamp));
- fail("expected an exception");
- } catch (final StreamsException e) {
- assertThat(e.getMessage(), containsString("buffer exceeded its max
capacity"));
- }
+ assertThrows(StreamsException.class,
+ () -> harness.processor.process(new Record<>("dummyKey", value,
timestamp)),
+ "buffer exceeded its max capacity"
Review Comment:
We should verify the error message, right?
--
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]