aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-19 21:34:04 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-19 21:34:04 +0000
commitbe1ad55a576efced3d184cc4d9deb2cb12c1fed0 (patch)
treeb7b8aed18da4669d8d49d22361c869d0d5f041a0 /test/ruby/test_io.rb
parent32553a495493cbb2f11c9c043b7c3205a87de038 (diff)
downloadruby-be1ad55a576efced3d184cc4d9deb2cb12c1fed0.tar.gz
fix off-by-one in r58806
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index ecf5658d22..5b58fde878 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -3558,7 +3558,7 @@ __END__
TCPServer.open('localhost', 0) do |svr|
con = TCPSocket.new('localhost', svr.addr[1])
acc = svr.accept
- assert_equal 6, con.send('hello', Socket::MSG_OOB)
+ assert_equal 5, con.send('hello', Socket::MSG_OOB)
set = IO.select(nil, nil, [acc], 30)
assert_equal([[], [], [acc]], set, 'IO#select exceptions array OK')
acc.close