зеркало из https://github.com/github/ruby.git
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:
Родитель
ec5e44f2c7
Коммит
ba8fbae364
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче