mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Abandon connection test if off line
This commit is contained in:
parent
8fa1db79bd
commit
081767656d
@ -67,6 +67,8 @@ describe 'Socket#connect' do
|
||||
client.connect(address)
|
||||
rescue Errno::ECONNREFUSED
|
||||
skip "Outgoing packets may be filtered"
|
||||
rescue Errno::ENETUNREACH
|
||||
skip "Off line"
|
||||
end
|
||||
}.should raise_error(IO::TimeoutError)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user