ruby/test/socket
Misaki Shioi 8f57204c19
Avoid test failures on hosts that only support IPv4 (#12213)
To verify the behavior of HEv2, some tests were prepared. But unexpected failures occur in certain environments.
This happens in environments where "localhost" resolves only to an IPv4 address during tests that verify connections to IPv6.

For example, the following situation can occur:

- The server process is bound to ::1.
- The client socket always resolves "localhost" to 127.0.0.1 and attempts to connect to 127.0.0.1.
- Since no server is bound to 127.0.0.1, an ECONNREFUSED error is raised.

In such situations, the behavior of `TCPSocket.new` remains unchanged from before the introduction of HEv2.
(The failures occur because tests explicitly binding to ::1 were added to verify HEv2 behavior.)

This change ensures that the affected tests are skipped in environments of this kind.
2024-12-02 21:47:51 +09:00
..
test_addrinfo.rb Replace SocketError with Socket::ResolutionError in rsock_raise_socket_error 2023-11-30 13:27:19 +09:00
test_ancdata.rb
test_basicsocket.rb
test_nonblock.rb
test_socket.rb Revise 9ec342e07d 2024-02-26 13:12:05 +09:00
test_sockopt.rb
test_tcp.rb Avoid test failures on hosts that only support IPv4 (#12213) 2024-12-02 21:47:51 +09:00
test_udp.rb
test_unix.rb Reduce the number of times IO is passed in send_io/recv_io test 2023-10-25 20:37:21 +09:00