Skip to content

Commit

Permalink
test/ruby/test_rubyoptions.rb (test_script_from_stdin): scale timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed May 26, 2019
1 parent 208ed56 commit a516834
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/ruby/test_rubyoptions.rb
Expand Up @@ -790,8 +790,9 @@ def test_script_from_stdin
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
}
Expand Down

0 comments on commit a516834

Please sign in to comment.