diff --git a/test/objspace/test_ractor.rb b/test/objspace/test_ractor.rb index 0fe4c32f2f0741..fb6432a8272595 100644 --- a/test/objspace/test_ractor.rb +++ b/test/objspace/test_ractor.rb @@ -14,7 +14,7 @@ def test_tracing_does_not_crash end def test_undefine_finalizer - assert_ractor(<<~'RUBY', require: 'objspace', signal: :SEGV) + assert_ractor(<<~'RUBY', timeout: 20, require: 'objspace', signal: :SEGV) def fin ->(id) { } end diff --git a/test/ruby/test_ractor.rb b/test/ruby/test_ractor.rb index 36467a35918981..eaf861946ef8f1 100644 --- a/test/ruby/test_ractor.rb +++ b/test/ruby/test_ractor.rb @@ -100,7 +100,7 @@ def initialize(*) end def test_move_nested_hash_during_gc_with_yjit - assert_ractor(<<~'RUBY', args: [{ "RUBY_YJIT_ENABLE" => "1" }]) + assert_ractor(<<~'RUBY', timeout: 20, args: [{ "RUBY_YJIT_ENABLE" => "1" }]) GC.stress = true hash = { foo: { bar: "hello" }, baz: { qux: "there" } } result = Ractor.new { Ractor.receive }.send(hash, move: true).value