liooooo29 opened a new pull request, #1367:
URL: https://github.com/apache/rocketmq-clients/pull/1367

   ### Brief Description
   
   Fix the `session::tests::session_new` unit test, which was failing with 
`Connection refused (os error 111)`.
   
   Root cause: `wiremock-grpc 0.0.3-alpha3` binds its mock gRPC server to the 
IPv6 loopback address `[::1]`, but the test connected to `localhost:{port}`, 
which resolves to IPv4 `127.0.0.1` on most Linux hosts. The client therefore 
dialed IPv4 while the server only listened on IPv6.
   
   Change: construct the connection address from the mock server's actual bound 
address (`server.address()`) instead of hardcoding `localhost`, so the test is 
robust regardless of which loopback family the mock binds.
   
   ### How Did You Test This Change?
   
   - `cargo test --lib`: 89 passed / 0 failed / 1 ignored (previously 88 passed 
/ 1 failed).
   - `cargo fmt --check`: clean.
   


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