Skip to content

Commit 86fff42

Browse files
committed
Use a timeout of 600 seconds for MRI tests too
1 parent c2e4255 commit 86fff42

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/mri/tests/lib/envutil.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ def capture_global_values
6161
end
6262
end
6363

64-
# TruffleRuby: startup can take longer, especially on highly loaded CI machines
65-
self.timeout_scale = 3 if defined?(::TruffleRuby)
64+
# TruffleRuby: startup can take longer, especially on highly loaded CI machines.
65+
# Note that EnvUtil.invoke_ruby has a timeout of 10 seconds * the scale.
66+
# We use 60 * 10 = 600s which is the same as the timeout for ruby/spec in jt.rb.
67+
self.timeout_scale = 60 if defined?(::TruffleRuby)
6668

6769
def apply_timeout_scale(t)
6870
if scale = EnvUtil.timeout_scale

0 commit comments

Comments
 (0)