dajac commented on PR #17527:
URL: https://github.com/apache/kafka/pull/17527#issuecomment-2579497331

   > @dajac writes:
   > 
   > > I suppose that the test passes with new MockTime(1L) because the new 
time is not used by the client. The client must be created after the time is 
set. Would it work? I would also prefer this over adding the sleep in the mock 
client.
   > 
   > It does pass; however, it also passes on `trunk`, which means the test has 
no signal. I am fine with making that change however @mjsax told me it was best 
to craft a test that fails before the patch (admittedly, this was tricky).
   
   @coltmcnealy-lh Thanks for trying. I also gave it a shot and I could not 
find a better way to do it. I think that we can keep your unit test as you 
proposed it. I left a minor comment.


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