1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

spec/ruby/library/socket/socket/listen_spec.rb: Allow both EACCES and EOPNOSUPP

on Android
This commit is contained in:
Yusuke Endoh 2020-10-12 23:36:12 +09:00
parent bf3b2a4374
commit 0b1b0f134e

View file

@ -41,8 +41,8 @@ describe 'Socket#listen' do
end
platform_is :android do
it 'raises Errno::EACCES' do
-> { @server.listen(1) }.should raise_error(Errno::EACCES)
it 'raises Errno::EOPNOTSUPP or Errno::EACCES' do
-> { @server.listen(1) }.should raise_error(-> exc { Errno::EACCES === exc || Errno::EOPNOTSUPP === exc })
end
end
end