mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2b8ab6c54f
commit
b83188dc1e
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue