From 758f9510a61ee4e7914ff1dae7046a6737029776 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 19 Mar 2009 12:45:40 +0000 Subject: use IO::WaitWritable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/socket/test_addrinfo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/socket/test_addrinfo.rb') diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb index 856fbd1308..4a08060669 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) -- cgit v1.2.3