From 242d8edbebc34f88313748f9fedf14367c6d409b Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 5 Nov 2025 10:23:35 -0800 Subject: Extend timeout for unstable tests https://github.com/ruby/ruby/actions/runs/19111531630/job/54609629054 --- test/ruby/test_autoload.rb | 6 ++++++ test/test_extlibs.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb index 607f0e3355..7b6a0b5712 100644 --- a/test/ruby/test_autoload.rb +++ b/test/ruby/test_autoload.rb @@ -613,4 +613,10 @@ p Foo::Bar RUBY end end + + private + + def assert_separately(*args, **kwargs) + super(*args, **{ timeout: 60 }.merge(kwargs)) + end end diff --git a/test/test_extlibs.rb b/test/test_extlibs.rb index 8969c3c50f..122eca3f5c 100644 --- a/test/test_extlibs.rb +++ b/test/test_extlibs.rb @@ -10,7 +10,7 @@ class TestExtLibs < Test::Unit::TestCase add_msg = ". #{add_msg}" if add_msg log = "#{@extdir}/#{ext}/mkmf.log" define_method("test_existence_of_#{ext}") do - assert_separately([], <<-"end;", ignore_stderr: true) # do + assert_separately([], <<-"end;", ignore_stderr: true, timeout: 60) # do log = #{log.dump} msg = proc { "extension library `#{ext}' is not found#{add_msg}\n" << -- cgit v1.2.3