codingkiddo opened a new pull request, #8099:
URL: https://github.com/apache/incubator-seata/pull/8099

   ### What changed
   
   Replaced the external HTTP calls in `HttpClientUtilTest#testHttpSendRes` 
with a local in-process HTTP server bound to `127.0.0.1` on a random port.
   
   ### Why
   
   The previous test depended on an external network endpoint, which could make 
the unit test flaky in local or CI environments when DNS, proxy, firewall, or 
network connectivity is unavailable or slow.
   
   Using a local HTTP server keeps the test deterministic while still 
exercising the existing `HttpClientUtil` GET and POST request paths.
   
   ### Validation
   
   ```bash
   ./mvnw -pl common clean test -Dtest=HttpClientUtilTest#testHttpSendRes
   
   Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
   BUILD SUCCESS


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to