diff options
Diffstat (limited to 'test/socket')
-rw-r--r-- | test/socket/test_addrinfo.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb index 56704513b1..3ef69c5c5f 100644 --- a/test/socket/test_addrinfo.rb +++ b/test/socket/test_addrinfo.rb @@ -320,6 +320,7 @@ class TestSocketAddrinfo < Test::Unit::TestCase ai = Addrinfo.unix("/tmp/sock").family_addrinfo("/tmp/sock2") assert_equal("/tmp/sock2", ai.unix_path) assert_equal(Socket::SOCK_STREAM, ai.socktype) + assert_raise(SocketError) { Addrinfo.tcp("0.0.0.0", 4649).family_addrinfo("::1", 80) } end def random_port |