Abandon connection test if off line

This commit is contained in:
Nobuyoshi Nakada 2024-12-28 09:00:53 +09:00
parent 8fa1db79bd
commit 081767656d
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -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