Skip to content

Commit 4e301a7

Browse files
committed
Always increase the timeout for MRI tests, even if given as an argument
1 parent 555cd18 commit 4e301a7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/mri/tests/lib/envutil.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,14 @@ def rubybin
4646
DEFAULT_SIGNALS.delete("TERM") if /mswin|mingw/ =~ RUBY_PLATFORM
4747

4848
def invoke_ruby(args, stdin_data = "", capture_stdout = false, capture_stderr = false,
49-
encoding: nil, timeout: 15, reprieve: 1, timeout_error: Timeout::Error,
49+
encoding: nil, timeout: 10, reprieve: 1, timeout_error: Timeout::Error,
5050
stdout_filter: nil, stderr_filter: nil,
5151
signal: :TERM,
5252
rubybin: EnvUtil.rubybin,
5353
**opt)
54+
# TruffleRuby: increase timeout
55+
timeout = timeout * 2
56+
5457
in_c, in_p = IO.pipe
5558
out_p, out_c = IO.pipe if capture_stdout
5659
err_p, err_c = IO.pipe if capture_stderr && capture_stderr != :merge_to_stdout

0 commit comments

Comments
 (0)