summaryrefslogtreecommitdiff
path: root/test/rinda
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-05 11:45:52 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-05 11:45:52 +0000
commit173ad5202b29f350b61c5f64d952ff96bbf7c98d (patch)
tree2343c0f1bc299b9a712e4c8683d554bd60bcf897 /test/rinda
parentc1f0daeb6ac5c5414c9a4a58bb778a118006ae1f (diff)
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
Diffstat (limited to 'test/rinda')
-rw-r--r--test/rinda/test_rinda.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
index bf110307497..dcd6001884c 100644
--- a/test/rinda/test_rinda.rb
+++ b/test/rinda/test_rinda.rb
@@ -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)