mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@8d74d49
This commit is contained in:
parent
c940397116
commit
d80e44deec
157 changed files with 581 additions and 543 deletions
|
@ -98,6 +98,15 @@ describe 'BasicSocket#sendmsg_nonblock' do
|
|||
10.times { @client.sendmsg_nonblock('hello' * 1_000_000) }
|
||||
}.should raise_error(IO::WaitWritable)
|
||||
end
|
||||
|
||||
it 'returns :wait_writable when the underlying buffer is full with exception: false' do
|
||||
ret = nil
|
||||
10.times {
|
||||
ret = @client.sendmsg_nonblock('hello' * 1_000_000, exception: false)
|
||||
break unless ret.is_a?(Integer)
|
||||
}
|
||||
ret.should == :wait_writable
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue