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

   ## Description
   Sleep 100ms then `Mockito.verify(RegisterUtils.doHeartBeat..., times(2))` 
and `assertTrue(executor.isShutdown())`. Under load the executor may not finish 
in 100ms -> false failure (and #6351-style `ConcurrentModificationException` 
risk lives in this same area).
   
   ## Location
   ```
   
shenyu-register-center/shenyu-register-client-beat/src/test/java/org/apache/shenyu/register/client/beat/HeartbeatListenerTest.java:161,215
   ```
   
   ## Impact
   Flaky verify/isShutdown assertions.
   
   ## Suggested fix
   Use `Awaitility.await().untilAsserted(() -> verify(..., times(2)))` and a 
deterministic shutdown latch.
   
   ## Related existing issue(s)
   Adjacent to #6351 but a different test/method.
   
   _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