1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2021-07-29 22:11:21 +02:00
parent 15d05f8120
commit 6998d75824
186 changed files with 3956 additions and 3339 deletions

View file

@ -114,6 +114,21 @@ describe 'BasicSocket#recvmsg_nonblock' do
end
platform_is_not :windows do
describe 'using a connected but not bound socket' do
before do
@server = Socket.new(family, :STREAM)
end
after do
@server.close
end
it "raises Errno::ENOTCONN" do
-> { @server.recvmsg_nonblock }.should raise_error(Errno::ENOTCONN)
-> { @server.recvmsg_nonblock(exception: false) }.should raise_error(Errno::ENOTCONN)
end
end
describe 'using a connected socket' do
before do
@client = Socket.new(family, :STREAM)