mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
skip hanging-up tests on macOS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3b8b668806
commit
ca5c3f1efc
4 changed files with 10 additions and 8 deletions
|
@ -177,7 +177,7 @@ describe 'BasicSocket#send' do
|
|||
end
|
||||
end
|
||||
|
||||
platform_is_not :windows do
|
||||
platform_is_not :darwin, :windows do
|
||||
describe 'using a connected TCP socket' do
|
||||
before do
|
||||
@client = Socket.new(family, :STREAM)
|
||||
|
|
|
@ -12,7 +12,7 @@ describe 'Socket#accept' do
|
|||
@server.close unless @server.closed?
|
||||
end
|
||||
|
||||
platform_is_not :freebsd, :windows do # hangs
|
||||
platform_is_not :darwin, :freebsd, :windows do # hangs
|
||||
describe 'using an unbound socket' do
|
||||
it 'raises Errno::EINVAL' do
|
||||
lambda { @server.accept }.should raise_error(Errno::EINVAL)
|
||||
|
|
|
@ -37,11 +37,13 @@ describe 'Socket#connect' do
|
|||
}.should raise_error(Errno::EISCONN)
|
||||
end
|
||||
|
||||
it 'raises Errno::ECONNREFUSED or Errno::ETIMEDOUT when the connection failed' do
|
||||
begin
|
||||
@client.connect(@server.getsockname)
|
||||
rescue => e
|
||||
[Errno::ECONNREFUSED, Errno::ETIMEDOUT].include?(e.class).should == true
|
||||
platform_is_not :darwin do
|
||||
it 'raises Errno::ECONNREFUSED or Errno::ETIMEDOUT when the connection failed' do
|
||||
begin
|
||||
@client.connect(@server.getsockname)
|
||||
rescue => e
|
||||
[Errno::ECONNREFUSED, Errno::ETIMEDOUT].include?(e.class).should == true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -12,7 +12,7 @@ describe 'Socket#sysaccept' do
|
|||
@server.close
|
||||
end
|
||||
|
||||
platform_is_not :freebsd, :windows do # hangs
|
||||
platform_is_not :freebsd, :windows, :darwin do # hangs
|
||||
describe 'using an unbound socket' do
|
||||
it 'raises Errno::EINVAL' do
|
||||
lambda { @server.sysaccept }.should raise_error(Errno::EINVAL)
|
||||
|
|
Loading…
Add table
Reference in a new issue