From 7e403dc6c84356e83c02538e76cc70ac789921ac Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Fri, 7 Jun 2019 09:26:40 +0900 Subject: [PATCH] test/openssl/utils.rb: Extend the timeout https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190606T171708Z.fail.html.gz --- test/openssl/utils.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/openssl/utils.rb b/test/openssl/utils.rb index 1da3d8f797..f3f4bf3f56 100644 --- a/test/openssl/utils.rb +++ b/test/openssl/utils.rb @@ -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 = $!