mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/lib/test/unit/assertions.rb (assert_cpu_usage_low): Relax the limit
CPU usage 1% causes occesional test failure. Try to use 5%. https://rubyci.org/logs/rubyci.s3.amazonaws.com/gentoo/ruby-master/log/20190604T153002Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/gentoo/ruby-master/log/20190610T153002Z.fail.html.gz
This commit is contained in:
parent
fe9701ee00
commit
4adc6f07ef
1 changed files with 1 additions and 1 deletions
|
@ -756,7 +756,7 @@ eom
|
|||
skip
|
||||
end
|
||||
|
||||
def assert_cpu_usage_low(msg = nil, pct: 0.01)
|
||||
def assert_cpu_usage_low(msg = nil, pct: 0.05)
|
||||
require 'benchmark'
|
||||
|
||||
tms = Benchmark.measure(msg || '') { yield }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue