ruby-changes:56041
From: Yusuke <ko1@a...>
Date: Fri, 7 Jun 2019 09:27:21 +0900 (JST)
Subject: [ruby-changes:56041] Yusuke Endoh: 7e403dc6c8 (trunk): test/openssl/utils.rb: Extend the timeout
https://git.ruby-lang.org/ruby.git/commit/?id=7e403dc6c8 From 7e403dc6c84356e83c02538e76cc70ac789921ac Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Fri, 7 Jun 2019 09:26:40 +0900 Subject: test/openssl/utils.rb: Extend the timeout https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190606T171708Z.fail.html.gz diff --git a/test/openssl/utils.rb b/test/openssl/utils.rb index 1da3d8f..f3f4bf3 100644 --- a/test/openssl/utils.rb +++ b/test/openssl/utils.rb @@ -266,8 +266,9 @@ class OpenSSL::SSLTestCase < OpenSSL::TestCase https://github.com/ruby/ruby/blob/trunk/test/openssl/utils.rb#L266 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 = $! -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/