Aias00 opened a new issue, #6589:
URL: https://github.com/apache/shenyu/issues/6589
## Description
`when(upstream.getUrl()).thenReturn("https://www.baidu.com");
healthCheckTask.run();` opens a real outbound TLS connection to a public site.
The comment even admits it ("Even if the address could not connect, it will
return false"). Fails on any CI without internet egress or when baidu is slow.
## Location
```
shenyu-loadbalancer/src/test/java/org/apache/shenyu/loadbalancer/cache/UpstreamCheckTaskTest.java:90
```
## Impact
Environment-dependent false failures; test asserts behavior the comment says
is unreliable.
## Suggested fix
`mockStatic(UpstreamCheckUtils.class)` to return canned results, or point at
a `WireMock`/`HttpServer` started on `new ServerSocket(0)`.
## 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]