gnodet commented on code in PR #1558:
URL: https://github.com/apache/maven-mvnd/pull/1558#discussion_r4792974468


##########
integration-tests/src/test/java/org/mvndaemon/mvnd/junit/TestRegistry.java:
##########
@@ -84,6 +84,12 @@ public void awaitIdle(String daemonId) {
             Assertions.assertThat(deadline)

Review Comment:
   _Claude Code on behalf of Guillaume Nodet_
   
   **Note on timeout precision**: The actual timeout can exceed `timeoutMs` by 
up to 100ms because the sleep happens after the deadline check. This means:
   
   1. Check deadline (e.g., 50ms remaining)
   2. Pass the check
   3. Sleep 100ms
   4. Loop back and check again (now 50ms past deadline)
   5. Fail on next iteration
   
   For test code with a 30-second timeout, this ~100ms variance is negligible 
and acceptable. Just noting it for completeness.



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