mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
5aa5112443
commit
68682a5d2b
3 changed files with 3 additions and 3 deletions
|
@ -78,7 +78,7 @@ class TestIOWait < Test::Unit::TestCase
|
||||||
ret = nil
|
ret = nil
|
||||||
assert_nothing_raised(Timeout::Error) do
|
assert_nothing_raised(Timeout::Error) do
|
||||||
q.push(true)
|
q.push(true)
|
||||||
t = EnvUtil.apply_timeout_scale(0.1)
|
t = EnvUtil.apply_timeout_scale(1)
|
||||||
Timeout.timeout(t) { ret = @r.wait }
|
Timeout.timeout(t) { ret = @r.wait }
|
||||||
end
|
end
|
||||||
assert_equal @r, ret
|
assert_equal @r, ret
|
||||||
|
|
|
@ -498,7 +498,7 @@ class TestFiber < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_machine_stack_gc
|
def test_machine_stack_gc
|
||||||
assert_normal_exit <<-RUBY, '[Bug #14561]', timeout: 10
|
assert_normal_exit <<-RUBY, '[Bug #14561]', timeout: 60
|
||||||
enum = Enumerator.new { |y| y << 1 }
|
enum = Enumerator.new { |y| y << 1 }
|
||||||
thread = Thread.new { enum.peek }
|
thread = Thread.new { enum.peek }
|
||||||
thread.join
|
thread.join
|
||||||
|
|
|
@ -293,7 +293,7 @@ class TestGc < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_measure_total_time
|
def test_measure_total_time
|
||||||
assert_separately([], __FILE__, __LINE__, <<~RUBY)
|
assert_separately([], __FILE__, __LINE__, <<~RUBY, timeout: 60)
|
||||||
GC.measure_total_time = false
|
GC.measure_total_time = false
|
||||||
|
|
||||||
time_before = GC.stat(:time)
|
time_before = GC.stat(:time)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue