zhaohaidao commented on code in PR #14271:
URL: https://github.com/apache/kafka/pull/14271#discussion_r1323252098


##########
group-coordinator/src/test/java/org/apache/kafka/coordinator/group/GroupMetadataManagerTest.java:
##########
@@ -8574,6 +8597,36 @@ public void 
testHeartbeatDuringRebalanceCausesRebalanceInProgress() throws Excep
         assertEquals(Errors.REBALANCE_IN_PROGRESS.code(), 
heartbeatResponse.errorCode());
     }
 
+    @Test
+    public void testListGroups() {
+        String genericGroupId = "generic-group-id";
+        String consumerGroupId = "consumer-group-id";
+        GroupMetadataManagerTestContext context = new 
GroupMetadataManagerTestContext.Builder().build();
+        context.updateLastWrittenOffset(context.lastWrittenOffset);
+        GenericGroup genericGroup = context.createGenericGroup(genericGroupId);
+        ConsumerGroup consumerGroup = 
context.createConsumerGroup(consumerGroupId);
+        context.updateLastWrittenOffset(context.lastWrittenOffset + 2);

Review Comment:
   I updated this test case based on my own understanding. Please help to see 
if it meets expectations.



-- 
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]

Reply via email to