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)
|
client.connect(address)
|
||||||
rescue Errno::ECONNREFUSED
|
rescue Errno::ECONNREFUSED
|
||||||
skip "Outgoing packets may be filtered"
|
skip "Outgoing packets may be filtered"
|
||||||
|
rescue Errno::ENETUNREACH
|
||||||
|
skip "Off line"
|
||||||
end
|
end
|
||||||
}.should raise_error(IO::TimeoutError)
|
}.should raise_error(IO::TimeoutError)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user