kirktrue commented on code in PR #20521:
URL: https://github.com/apache/kafka/pull/20521#discussion_r2482660755
##########
clients/src/test/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumerTest.java:
##########
@@ -1901,15 +1897,14 @@ public void
testUpdatePatternSubscriptionEventGeneratedOnlyIfPatternUsed() {
completeUnsubscribeApplicationEventSuccessfully();
consumer.assign(singleton(new TopicPartition("topic1", 0)));
- markReconcileAndAutoCommitCompleteForPollEvent();
+ completeAsyncPollEventSuccessfully();
consumer.poll(Duration.ZERO);
verify(applicationEventHandler,
never()).addAndGet(any(UpdatePatternSubscriptionEvent.class));
consumer.unsubscribe();
consumer.subscribe(Pattern.compile("t*"));
consumer.poll(Duration.ZERO);
-
verify(applicationEventHandler).addAndGet(any(UpdatePatternSubscriptionEvent.class));
Review Comment:
I've moved that test method and added two other cases to
`ApplicationEventProcessorTest`.
--
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]