diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-19 12:45:40 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-19 12:45:40 +0000 |
commit | 2797fcc61b02d032007fe890f52b7526a3bf9a79 (patch) | |
tree | 6e9b2ecdd06790025314d684c45208cc6d1dac1c /test | |
parent | 3c669e2be96b2584c8dd713fd4d2bd44bad11f9f (diff) | |
download | ruby-2797fcc61b02d032007fe890f52b7526a3bf9a79.tar.gz ruby-2797fcc61b02d032007fe890f52b7526a3bf9a79.tar.xz ruby-2797fcc61b02d032007fe890f52b7526a3bf9a79.zip |
use IO::WaitWritable.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/socket/test_addrinfo.rb | 2 | ||||
-rw-r--r-- | test/socket/test_nonblock.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb index 856fbd130..4a0806066 100644 --- a/test/socket/test_addrinfo.rb +++ b/test/socket/test_addrinfo.rb @@ -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) diff --git a/test/socket/test_nonblock.rb b/test/socket/test_nonblock.rb index 6b65cc386..e8e7fca95 100644 --- a/test/socket/test_nonblock.rb +++ b/test/socket/test_nonblock.rb @@ -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 |