showuon commented on a change in pull request #11019: URL: https://github.com/apache/kafka/pull/11019#discussion_r669472287
########## File path: clients/src/test/java/org/apache/kafka/clients/admin/KafkaAdminClientTest.java ########## @@ -3359,23 +3360,23 @@ public void testDeleteConsumerGroupOffsets() throws Exception { prepareFindCoordinatorResponse(Errors.NONE, env.cluster().controller())); env.kafkaClient().prepareResponse(new OffsetDeleteResponse( - new OffsetDeleteResponseData() - .setTopics(new OffsetDeleteResponseTopicCollection(Stream.of( - new OffsetDeleteResponseTopic() - .setName("foo") - .setPartitions(new OffsetDeleteResponsePartitionCollection(Collections.singletonList( - new OffsetDeleteResponsePartition() - .setPartitionIndex(0) - .setErrorCode(Errors.NONE.code()) - ).iterator())), - new OffsetDeleteResponseTopic() - .setName("bar") - .setPartitions(new OffsetDeleteResponsePartitionCollection(Collections.singletonList( - new OffsetDeleteResponsePartition() - .setPartitionIndex(0) - .setErrorCode(Errors.GROUP_SUBSCRIBED_TO_TOPIC.code()) - ).iterator())) - ).collect(Collectors.toList()).iterator())) + new OffsetDeleteResponseData() + .setTopics(new OffsetDeleteResponseTopicCollection(Stream.of( + new OffsetDeleteResponseTopic() + .setName("foo") + .setPartitions(new OffsetDeleteResponsePartitionCollection(Collections.singletonList( + new OffsetDeleteResponsePartition() + .setPartitionIndex(0) + .setErrorCode(Errors.NONE.code()) + ).iterator())), + new OffsetDeleteResponseTopic() + .setName("bar") + .setPartitions(new OffsetDeleteResponsePartitionCollection(Collections.singletonList( + new OffsetDeleteResponsePartition() + .setPartitionIndex(0) + .setErrorCode(Errors.GROUP_SUBSCRIBED_TO_TOPIC.code()) + ).iterator())) + ).collect(Collectors.toList()).iterator())) Review comment: Sorry, I accidentally did it. -- 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