summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2025-08-14 09:37:12 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2025-08-14 11:23:12 -0700
commit68682a5d2b277569d7402b737b16d76a2870e414 (patch)
treeb1ba991fc27d9cd13b0b641cb1258e0e22fb2b2b
parent5aa5112443274feb21f8c52789e216e213f4cf69 (diff)
Increase timeout for failing tests
https://github.com/ruby/ruby/actions/runs/16969921157/job/48103809963 https://github.com/ruby/ruby/actions/runs/16969655024/job/48102876839
-rw-r--r--test/io/wait/test_io_wait.rb2
-rw-r--r--test/ruby/test_fiber.rb2
-rw-r--r--test/ruby/test_gc.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/io/wait/test_io_wait.rb b/test/io/wait/test_io_wait.rb
index 4f8a33bc88..0e011a473f 100644
--- a/test/io/wait/test_io_wait.rb
+++ b/test/io/wait/test_io_wait.rb
@@ -78,7 +78,7 @@ class TestIOWait < Test::Unit::TestCase
ret = nil
assert_nothing_raised(Timeout::Error) do
q.push(true)
- t = EnvUtil.apply_timeout_scale(0.1)
+ t = EnvUtil.apply_timeout_scale(1)
Timeout.timeout(t) { ret = @r.wait }
end
assert_equal @r, ret
diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb
index 1f78307748..b7d2b71c19 100644
--- a/test/ruby/test_fiber.rb
+++ b/test/ruby/test_fiber.rb
@@ -498,7 +498,7 @@ class TestFiber < Test::Unit::TestCase
end
def test_machine_stack_gc
- assert_normal_exit <<-RUBY, '[Bug #14561]', timeout: 10
+ assert_normal_exit <<-RUBY, '[Bug #14561]', timeout: 60
enum = Enumerator.new { |y| y << 1 }
thread = Thread.new { enum.peek }
thread.join
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index ccccd212b6..5fc9ea508c 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -293,7 +293,7 @@ class TestGc < Test::Unit::TestCase
end
def test_measure_total_time
- assert_separately([], __FILE__, __LINE__, <<~RUBY)
+ assert_separately([], __FILE__, __LINE__, <<~RUBY, timeout: 60)
GC.measure_total_time = false
time_before = GC.stat(:time)