We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b148dfe commit 29c0ca5Copy full SHA for 29c0ca5
test/socket/test_tcp.rb
@@ -18,6 +18,12 @@ def test_inspect
18
end
19
20
def test_initialize_failure
21
+ assert_raise(Socket::ResolutionError) do
22
+ t = TCPSocket.open(nil, nil)
23
+ ensure
24
+ t&.close
25
+ end
26
+
27
# These addresses are chosen from TEST-NET-1, TEST-NET-2, and TEST-NET-3.
28
# [RFC 5737]
29
# They are chosen because probably they are not used as a host address.
0 commit comments