зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
aa7211836b
Коммит
e75c278183
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче