FrankYang0529 commented on code in PR #16673: URL: https://github.com/apache/kafka/pull/16673#discussion_r1713836655
########## clients/src/test/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumerTest.java: ########## @@ -1748,8 +1767,7 @@ public void testMultipleBackgroundErrors() { final KafkaException expectedException2 = new KafkaException("Spam, Spam, Spam"); final ErrorEvent errorEvent2 = new ErrorEvent(expectedException2); backgroundEventQueue.add(errorEvent2); - consumer.assign(singletonList(new TopicPartition("topic", 0))); - final KafkaException exception = assertThrows(KafkaException.class, () -> consumer.poll(Duration.ZERO)); + final KafkaException exception = assertThrows(KafkaException.class, () -> consumer.assign(singletonList(new TopicPartition("topic", 0)))); Review Comment: Good catch. Updated it. Thank you. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org