mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix off-by-one in r58806
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b9f8fc510f
commit
c018d46413
1 changed files with 1 additions and 1 deletions
|
@ -3558,7 +3558,7 @@ __END__
|
||||||
TCPServer.open('localhost', 0) do |svr|
|
TCPServer.open('localhost', 0) do |svr|
|
||||||
con = TCPSocket.new('localhost', svr.addr[1])
|
con = TCPSocket.new('localhost', svr.addr[1])
|
||||||
acc = svr.accept
|
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)
|
set = IO.select(nil, nil, [acc], 30)
|
||||||
assert_equal([[], [], [acc]], set, 'IO#select exceptions array OK')
|
assert_equal([[], [], [acc]], set, 'IO#select exceptions array OK')
|
||||||
acc.close
|
acc.close
|
||||||
|
|
Loading…
Reference in a new issue