mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/openssl/utils.rb: Extend the timeout
https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190606T171708Z.fail.html.gz
This commit is contained in:
parent
c7477c3e1f
commit
7e403dc6c8
1 changed files with 3 additions and 2 deletions
|
@ -266,8 +266,9 @@ class OpenSSL::SSLTestCase < OpenSSL::TestCase
|
|||
pend = nil
|
||||
threads.each { |th|
|
||||
begin
|
||||
th.join(10) or
|
||||
th.raise(RuntimeError, "[start_server] thread did not exit in 10 secs")
|
||||
timeout = EnvUtil.apply_timeout_scale(10)
|
||||
th.join(timeout) or
|
||||
th.raise(RuntimeError, "[start_server] thread did not exit in #{ timeout } secs")
|
||||
rescue (defined?(MiniTest::Skip) ? MiniTest::Skip : Test::Unit::PendedError)
|
||||
# MiniTest::Skip is for the Ruby tree
|
||||
pend = $!
|
||||
|
|
Loading…
Reference in a new issue