summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2025-11-05 10:23:35 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2025-11-05 10:25:52 -0800
commit242d8edbebc34f88313748f9fedf14367c6d409b (patch)
treeedfce563b2a7957aab4d931d930f66610c478a05
parent7334244e001910ed1fc224cb7a59c7e9c7ae8d53 (diff)
Extend timeout for unstable tests
https://github.com/ruby/ruby/actions/runs/19111531630/job/54609629054
-rw-r--r--test/ruby/test_autoload.rb6
-rw-r--r--test/test_extlibs.rb2
2 files changed, 7 insertions, 1 deletions
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" <<