lianetm commented on code in PR #16200: URL: https://github.com/apache/kafka/pull/16200#discussion_r1668844863
########## clients/src/test/java/org/apache/kafka/clients/consumer/internals/HeartbeatRequestManagerTest.java: ########## @@ -298,6 +353,8 @@ public void testHeartbeatNotSentIfAnotherOneInFlight() { public void testHeartbeatOutsideInterval() { when(membershipManager.shouldSkipHeartbeat()).thenReturn(false); when(membershipManager.shouldHeartbeatNow()).thenReturn(true); + when(pollTimer.remainingMs()).thenReturn(Long.MAX_VALUE); + when(heartbeatRequestState.timeToNextHeartbeatMs(time.milliseconds())).thenReturn(1000L); Review Comment: is this 1000 the interval? if so let's use the constant to make it clear. -- 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