mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
d494a16ac5
commit
c02a9994ce
1 changed files with 4 additions and 4 deletions
|
@ -72,7 +72,7 @@ class TestResolvDNS < Test::Unit::TestCase
|
||||||
begin
|
begin
|
||||||
OpenSSL
|
OpenSSL
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
skip 'autoload problem. see [ruby-dev:45021][Bug #5786]'
|
omit 'autoload problem. see [ruby-dev:45021][Bug #5786]'
|
||||||
end if defined?(OpenSSL)
|
end if defined?(OpenSSL)
|
||||||
|
|
||||||
with_udp('127.0.0.1', 0) {|u|
|
with_udp('127.0.0.1', 0) {|u|
|
||||||
|
@ -161,7 +161,7 @@ class TestResolvDNS < Test::Unit::TestCase
|
||||||
begin
|
begin
|
||||||
OpenSSL
|
OpenSSL
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
skip 'autoload problem. see [ruby-dev:45021][Bug #5786]'
|
omit 'autoload problem. see [ruby-dev:45021][Bug #5786]'
|
||||||
end if defined?(OpenSSL)
|
end if defined?(OpenSSL)
|
||||||
|
|
||||||
with_udp('127.0.0.1', 0) {|u|
|
with_udp('127.0.0.1', 0) {|u|
|
||||||
|
@ -297,7 +297,7 @@ class TestResolvDNS < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_no_server
|
def test_no_server
|
||||||
skip if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning
|
omit if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning
|
||||||
u = UDPSocket.new
|
u = UDPSocket.new
|
||||||
u.bind("127.0.0.1", 0)
|
u.bind("127.0.0.1", 0)
|
||||||
_, port, _, host = u.addr
|
_, port, _, host = u.addr
|
||||||
|
@ -314,7 +314,7 @@ class TestResolvDNS < Test::Unit::TestCase
|
||||||
rescue Timeout::Error
|
rescue Timeout::Error
|
||||||
if RUBY_PLATFORM.match?(/mingw/)
|
if RUBY_PLATFORM.match?(/mingw/)
|
||||||
# cannot repo locally
|
# cannot repo locally
|
||||||
skip 'Timeout Error on MinGW CI'
|
omit 'Timeout Error on MinGW CI'
|
||||||
else
|
else
|
||||||
raise Timeout::Error
|
raise Timeout::Error
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue