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:
parent
c1f0daeb6a
commit
173ad5202b
@ -822,6 +822,7 @@ class TestRingServer < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def wait_for(n)
|
def wait_for(n)
|
||||||
|
n *= 10 if RubyVM::MJIT.enabled? # for --jit-wait
|
||||||
t = n + Process.clock_gettime(Process::CLOCK_MONOTONIC, :second)
|
t = n + Process.clock_gettime(Process::CLOCK_MONOTONIC, :second)
|
||||||
until yield
|
until yield
|
||||||
if t < Process.clock_gettime(Process::CLOCK_MONOTONIC, :second)
|
if t < Process.clock_gettime(Process::CLOCK_MONOTONIC, :second)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user