mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00

This test currently fails if RUBY_TEST_TIMEOUT_SCALE is set, because the worker timeout is scaled out but the duration of the sleep does not; thus, the test-test-case does not timeout when it should.
8 lines
181 B
Ruby
8 lines
181 B
Ruby
require 'test/unit'
|
|
|
|
module TestSlowTimeout
|
|
def test_slow
|
|
sleep_for = EnvUtil.apply_timeout_scale((ENV['sec'] || 3).to_i)
|
|
sleep sleep_for if on_parallel_worker?
|
|
end
|
|
end
|