Do not run drb SSL tests on Windows

These tests often cause a timeout and this issue seems specific to the
Windows platforms.
https://github.com/ruby/ruby/actions/runs/3603761925/jobs/6072346738
This commit is contained in:
Takashi Kokubun 2022-12-02 10:48:50 -08:00
parent 7b38853bc3
commit 5fafff15c6
No known key found for this signature in database
GPG Key ID: 6FFC433B12EE23DD

View File

@ -41,9 +41,9 @@ end
class TestDRbSSLCore < Test::Unit::TestCase
include DRbCore
def setup
if RUBY_PLATFORM.match?(/mingw/)
if RUBY_PLATFORM.match?(/mswin|mingw/)
@omitted = true
omit 'This test seems to randomly hang on GitHub Actions MinGW'
omit 'This test seems to randomly hang on Windows'
end
@drb_service = DRbSSLService.new
super
@ -63,9 +63,9 @@ end
class TestDRbSSLAry < Test::Unit::TestCase
include DRbAry
def setup
if RUBY_PLATFORM.match?(/mswin/)
if RUBY_PLATFORM.match?(/mswin|mingw/)
@omitted = true
omit 'This test seems to randomly hang on GitHub Actions mswin'
omit 'This test seems to randomly hang on Windows'
end
LeakChecker.skip if defined?(LeakChecker)
@drb_service = DRbSSLService.new