junrao commented on code in PR #19489:
URL: https://github.com/apache/kafka/pull/19489#discussion_r2632744006


##########
clients/src/test/java/org/apache/kafka/clients/producer/internals/SenderTest.java:
##########
@@ -2686,14 +2701,14 @@ public void testResetNextBatchExpiry() throws Exception 
{
         inOrder.verify(client, atLeastOnce()).newClientRequest(anyString(), 
any(), anyLong(), anyBoolean(), anyInt(), any());
         inOrder.verify(client, atLeastOnce()).send(any(), anyLong());
         inOrder.verify(client).poll(eq(0L), anyLong());
-        inOrder.verify(client).poll(eq(accumulator.getDeliveryTimeoutMs()), 
anyLong());
+        inOrder.verify(client).poll(geq(Long.MAX_VALUE - 
System.currentTimeMillis()), anyLong());

Review Comment:
   We need to use time, instead of System time. We also need to save the time 
before the 2nd runOnce() call.



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