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

use IO::WaitWritable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-03-19 12:45:40 +00:00
parent c4049f4cb6
commit 758f9510a6
2 changed files with 2 additions and 2 deletions

View file

@ -157,7 +157,7 @@ class TestSocketAddrinfo < Test::Unit::TestCase
s2 = Socket.new(:INET, :STREAM, 0)
begin
s2.connect_nonblock(ai)
rescue Errno::EINPROGRESS
rescue IO::WaitWritable
IO.select(nil, [s2])
begin
s2.connect_nonblock(ai)

View file

@ -36,7 +36,7 @@ class TestSocketNonblock < Test::Unit::TestCase
servaddr = serv.getsockname
begin
c.connect_nonblock(servaddr)
rescue Errno::EINPROGRESS
rescue IO::WaitWritable
IO.select nil, [c]
assert_nothing_raised {
begin