zjncs opened a new pull request, #5844:
URL: https://github.com/apache/rocketmq-dashboard/pull/5844

   ### What
   
   `SocketProxyHealthProbe` decides whether a proxy node is up via a plain TCP 
connect (so it also works for gRPC-only proxies). It had no test. This adds 4 
tests.
   
   ### What is pinned
   
   - **a listening local port is reachable with a non-negative latency** 
(probed against a real loopback listener);
   - **a closed local port is unreachable with the `-1` sentinel** latency;
   - the `ProbeResult` factories: `unreachable()` uses the sentinel, and 
**`reachable(latency)` clamps a negative latency to zero**.
   
   ### Verification
   
   - New tests on unmodified code: **4/4 green**, checkstyle clean.
   - Discriminating mutation: the reachable branch swapped for unreachable 
(red).
   - Restored: 4/4 green. Test-only change; no product code touched.
   


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