diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-04-03 14:10:16 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-04-06 00:19:03 +0900 |
commit | f07c756494b0e473ff8e4ece6f04c7ababe93b01 () | |
tree | 6de84533291786e3639c2e86b0b6d49e99ef4922 /tool/lib/core_assertions.rb | |
parent | 4b100f75d2047de4f525f748fe8901471e8318ed (diff) |
core_assertions.rb: Tweak timeout limit
Increase the timeout limit when variance at rehearsal is small.
Notes: Merged: https://.com/ruby/ruby/pull/7661
-rw-r--r-- | tool/lib/core_assertions.rb | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -758,14 +758,14 @@ eom end times.compact! tmin, tmax = times.minmax - tmax *= tmax / tmin - tmax = 10**Math.log10(tmax).ceil seq.each do |i| next if i == first - t = tmax * i.fdiv(first) *arg = pre.call(i) - message = "[#{i}]: in #{t}s" Timeout.timeout(t, Timeout::Error, message) do st = Process.clock_gettime(Process::CLOCK_MONOTONIC) yield(*arg) |