summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-06-13 22:44:01 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-06-13 22:44:01 +0900
commite75c278183306d28f0210673905437c2f6350b26 (patch)
tree6536b03b188dfa2fcf464db816e735b57e5ef882 /test/lib
parentaa7211836b769231a2a8ef6b6ec2fd0ec882ef29 (diff)
test/lib/test/unit/assertions.rb (assert_cpu_usage_low): tweak the wait
It still fails randomly. https://rubyci.org/logs/rubyci.s3.amazonaws.com/amazon2/ruby-master/log/20190613T093003Z.fail.html.gz https://rubyci.org/logs/mswinci.japaneast.cloudapp.azure.com/vc12-x64/ruby-master/log/20190613T051547Z.fail.html.gz
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/test/unit/assertions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb
index da552e3b0e..bee32d1b83 100644
--- a/test/lib/test/unit/assertions.rb
+++ b/test/lib/test/unit/assertions.rb
@@ -761,7 +761,7 @@ eom
MIN_HZ = MiniTest::Unit::TestCase.windows? ? 67 : 100
MIN_MEASURABLE = 1.0 / MIN_HZ
- def assert_cpu_usage_low(msg = nil, pct: 0.05, wait: 0.1, stop: nil)
+ def assert_cpu_usage_low(msg = nil, pct: 0.05, wait: 1.0, stop: nil)
require 'benchmark'
wait = EnvUtil.apply_timeout_scale(wait)