mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/ruby/test_rubyoptions.rb (test_script_from_stdin): scale timeout
for Solaris. https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190525T131909Z.fail.html.gz
This commit is contained in:
parent
208ed56e57
commit
a516834b47
1 changed files with 2 additions and 1 deletions
|
@ -790,8 +790,9 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
m.print("\C-d")
|
||||
pid = spawn(EnvUtil.rubybin, :in => s, :out => w)
|
||||
w.close
|
||||
timeout = EnvUtil.apply_timeout_scale(3)
|
||||
assert_nothing_raised('[ruby-dev:37798]') do
|
||||
result = Timeout.timeout(3) {r.read}
|
||||
result = Timeout.timeout(timeout) {r.read}
|
||||
end
|
||||
Process.wait pid
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue