1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

assert connects doesn't raise.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-03-14 06:58:50 +00:00
parent ec5e44f2c7
commit ba8fbae364

View file

@ -173,9 +173,14 @@ class TestSocket < Test::Unit::TestCase
unix_server = Socket.unix_server_socket("#{tmpdir}/sock")
tcp_servers.each {|s|
addr = s.connect_address
assert_nothing_raised("connect to #{addr.inspect}") {
clients << addr.connect
}
}
addr = unix_server.connect_address
assert_nothing_raised("connect to #{addr.inspect}") {
clients << addr.connect
}
clients << unix_server.local_address.connect
Socket.accept_loop(tcp_servers, unix_server) {|s|
accepted << s
break if clients.length == accepted.length