mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
15ee450801
commit
46f3d82f40
Notes:
git
2025-03-04 20:46:12 +00:00
1 changed files with 0 additions and 16 deletions
|
@ -274,20 +274,4 @@ class TestTimeout < Test::Unit::TestCase
|
|||
}.join
|
||||
end;
|
||||
end
|
||||
|
||||
# TODO: remove it
|
||||
require 'envutil'
|
||||
|
||||
def test_timeout_scale
|
||||
scale = ENV['RUBY_TEST_TIMEOUT_SCALE']&.to_f
|
||||
sec = 5
|
||||
|
||||
if scale
|
||||
assert_equal sec * scale, EnvUtil.apply_timeout_scale(sec)
|
||||
else
|
||||
assert_equal sec, EnvUtil.apply_timeout_scale(sec)
|
||||
end
|
||||
|
||||
STDERR.puts [scale, sec, EnvUtil.apply_timeout_scale(sec)].inspect
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue