cadonna commented on code in PR #19181:
URL: https://github.com/apache/kafka/pull/19181#discussion_r1991660967


##########
clients/src/test/java/org/apache/kafka/clients/consumer/internals/StreamsGroupHeartbeatRequestManagerTest.java:
##########
@@ -476,20 +492,25 @@ public void 
testNotSendingLeaveHeartbeatIfPollTimerExpiredAndMemberIsLeaving() {
     }
 
     @Test
-    public void testSendingFullHeartbeatRequest() {
+    public void testSendingLeaveHeartbeatRequestWhenPollTimerExpired() {
         try (
             final MockedConstruction<HeartbeatRequestState> 
heartbeatRequestStateMockedConstruction = mockConstruction(
                 HeartbeatRequestState.class,
                 (mock, context) -> {
                     
when(mock.canSendRequest(time.milliseconds())).thenReturn(true);
-                })
+                });
+            final MockedConstruction<Timer> pollTimerMockedConstruction = 
mockConstruction(
+                Timer.class,
+                (mock, context) -> {
+                    when(mock.isExpired()).thenReturn(true);
+                });

Review Comment:
   Done



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

Reply via email to