Aias00 opened a new issue, #6590:
URL: https://github.com/apache/shenyu/issues/6590

   ## Description
   `Thread.sleep(1)` then `assertThat(second.getLastHeartBeatTime(), 
greaterThan(firstBeat))` where the timestamp comes from 
`System.currentTimeMillis()`. On coarse-grained clocks (Windows ~15ms, loaded 
CI) 1ms does not guarantee a strictly-greater value.
   
   ## Location
   ```
   
shenyu-admin/src/test/java/org/apache/shenyu/admin/service/impl/InstanceCheckServiceTest.java:105-111
   ```
   
   ## Impact
   Intermittent false failure on slow/coarse-clock runners.
   
   ## Suggested fix
   Inject a controllable clock (or set the field reflectively to a 
fixed-then-incremented value); assert on the injected values, not wall clock.
   
   ## Related existing issue(s)
   None
   
   _Identified during the 2026-08-02 audit; full list in 
[`docs/issue-candidates-2026-08-02.md`](docs/issue-candidates-2026-08-02.md)._


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