8000 test/testunit/test_parallel.rb: respect subprocess timeout scale · github/ruby@dc1ecab · GitHub
[go: up one dir, main page]

Skip to content

Commit dc1ecab

Browse files
author
normal
committed
test/testunit/test_parallel.rb: respect subprocess timeout scale
MJIT tests take longer than 100s on my VM :< git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent eb38fb6 commit dc1ecab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/testunit/test_parallel.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
module TestParallel
66
PARALLEL_RB = "#{File.dirname(__FILE__)}/../lib/test/unit/parallel.rb"
77
TESTS = "#{File.dirname(__FILE__)}/tests_for_parallel"
8-
TIMEOUT = RubyVM::MJIT.enabled? ? 100 : 10 # use large timeout for --jit-wait
8+
# use large timeout for --jit-wait
9+
TIMEOUT = EnvUtil.apply_timeout_scale(RubyVM::MJIT.enabled? ? 100 : 10)
910

1011
class TestParallelWorker < Test::Unit::TestCase
1112
def setup

0 commit comments

Comments
 (0)
0