summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-12-28 09:00:53 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2024-12-28 09:00:53 +0900
commit081767656d96e78bc2bf0eb88d36927127097d60 (patch)
tree525b26ed91fe3dd29470d41d0b99fde579764780
parent8fa1db79bd35d93140b7c1f2d7d58a946840d46f (diff)
Abandon connection test if off line
-rw-r--r--spec/ruby/library/socket/socket/connect_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/ruby/library/socket/socket/connect_spec.rb b/spec/ruby/library/socket/socket/connect_spec.rb
index 7fceb47b00..ccace9ff6d 100644
--- a/spec/ruby/library/socket/socket/connect_spec.rb
+++ b/spec/ruby/library/socket/socket/connect_spec.rb
@@ -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