test_rinda.rb: extend timeout of wait_for as well

https://app.wercker.com/ruby/ruby/runs/mjit-test2/5c5961adb18ed400951edeeb?step=5c596fd563e946000717df91

see also: r67003

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2019-02-05 11:45:52 +00:00
parent c1f0daeb6a
commit 173ad5202b

View File

@ -822,6 +822,7 @@ class TestRingServer < Test::Unit::TestCase
end
def wait_for(n)
n *= 10 if RubyVM::MJIT.enabled? # for --jit-wait
t = n + Process.clock_gettime(Process::CLOCK_MONOTONIC, :second)
until yield
if t < Process.clock_gettime(Process::CLOCK_MONOTONIC, :second)