chia7712 commented on code in PR #23306:
URL: https://github.com/apache/kafka/pull/23306#discussion_r3919015543
##########
streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/utils/IntegrationTestUtils.java:
##########
@@ -1365,7 +1364,7 @@ public static void waitUntilStreamsHasPolled(final
KafkaStreams kafkaStreams, fi
throws InterruptedException {
final Double initialCount = getStreamsPollNumber(kafkaStreams);
retryOnExceptionWithTimeout(10000, () -> {
- assertThat(getStreamsPollNumber(kafkaStreams),
is(greaterThanOrEqualTo(initialCount + pollNumber)));
Review Comment:
Let's keep some rich output.
```java
public static void waitUntilStreamsHasPolled(final KafkaStreams
kafkaStreams, final int pollNumber)
throws InterruptedException {
final double initialCount = getStreamsPollNumber(kafkaStreams);
final double expectedCount = initialCount + pollNumber;
retryOnExceptionWithTimeout(10000, () -> {
final double currentCount = getStreamsPollNumber(kafkaStreams);
assertTrue(currentCount >= expectedCount,
() -> "Expected poll-total to reach at least " + expectedCount
+ " (initial " + initialCount + " + " + pollNumber + "), but
was " + currentCount);
});
}
```
--
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]