aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/socket/test_addrinfo.rb2
-rw-r--r--test/socket/test_nonblock.rb2
2 files changed, 2 insertions, 2 deletions
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)
diff --git a/test/socket/test_nonblock.rb b/test/socket/test_nonblock.rb
index 6b65cc386a..e8e7fca95f 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