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
@ -756,7 +756,7 @@ eom
|
|||||||
skip
|
skip
|
||||||
end
|
end
|
||||||
|
|
||||||
def assert_cpu_usage_low(msg = nil, pct: 0.01)
|
def assert_cpu_usage_low(msg = nil, pct: 0.05)
|
||||||
require 'benchmark'
|
require 'benchmark'
|
||||||
|
|
||||||
tms = Benchmark.measure(msg || '') { yield }
|
tms = Benchmark.measure(msg || '') { yield }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user