mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 14:05:02 +02:00
test_rinda.rb: extend timeout of wait_for as well
5c5961adb1
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
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue