ruby-changes:56106
From: Yusuke <ko1@a...>
Date: Thu, 13 Jun 2019 22:46:16 +0900 (JST)
Subject: [ruby-changes:56106] Yusuke Endoh: e75c278183 (trunk): test/lib/test/unit/assertions.rb (assert_cpu_usage_low): tweak the wait
https://git.ruby-lang.org/ruby.git/commit/?id=e75c278183 From e75c278183306d28f0210673905437c2f6350b26 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Thu, 13 Jun 2019 22:44:01 +0900 Subject: 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 diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb index da552e3..bee32d1 100644 --- a/test/lib/test/unit/assertions.rb +++ b/test/lib/test/unit/assertions.rb @@ -761,7 +761,7 @@ eom https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/assertions.rb#L761 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/