summaryrefslogtreecommitdiff
path: root/test/socket
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2023-09-30 17:41:14 +0900
committerNobuyoshi Nakada <[email protected]>2023-09-30 19:03:04 +0900
commit94e79e4c2da8d69f45e67228a051bb1c09a367ec (patch)
treef42d486ff35e79c201f7d0dec4c372310a8e3dce /test/socket
parent1fbccd02eeb37cf3ecd408b0ec2a71bdf78aa00f (diff)
Fix failures when all network interfaces are down
Diffstat (limited to 'test/socket')
-rw-r--r--test/socket/test_tcp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_tcp.rb b/test/socket/test_tcp.rb
index 83ebea1b7a..7f9dc53cae 100644
--- a/test/socket/test_tcp.rb
+++ b/test/socket/test_tcp.rb
@@ -70,7 +70,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase
end
def test_initialize_connect_timeout
- assert_raise(IO::TimeoutError) do
+ assert_raise(IO::TimeoutError, Errno::ENETUNREACH) do
TCPSocket.new("192.0.2.1", 80, connect_timeout: 0)
end
end