From 09bda4ceb592801d1729a2e7b4aea164dc855f6d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 22 Mar 2023 17:58:49 +0900 Subject: [PATCH] core_assertions.rb: Refine `assert_linear_performance` * Calculate each timeout from the ratio of each factor to the first factor. --- tool/lib/core_assertions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/lib/core_assertions.rb b/tool/lib/core_assertions.rb index d9d633a0ac..1662024e7d 100644 --- a/tool/lib/core_assertions.rb +++ b/tool/lib/core_assertions.rb @@ -760,7 +760,7 @@ eom seq.each do |i| next if i == first - t = (tmax * i).to_f + t = tmax * i.fdiv(first) *arg = pre.call(i) message = "[#{i}]: in #{t}s" Timeout.timeout(t, nil, message) do