mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
increase timeout seconds.
* test/ruby/test_io.rb (test_select_leak): increase timeout seconds to pass this test on a high-load machine. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8a3ed368af
commit
b2f9deee3e
1 changed files with 2 additions and 2 deletions
|
@ -3802,13 +3802,13 @@ __END__
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_select_leak
|
def test_select_leak
|
||||||
assert_no_memory_leak([], <<-"end;", <<-"end;", rss: true, timeout: 30)
|
assert_no_memory_leak([], <<-"end;", <<-"end;", rss: true, timeout: 60)
|
||||||
r, w = IO.pipe
|
r, w = IO.pipe
|
||||||
rset = [r]
|
rset = [r]
|
||||||
wset = [w]
|
wset = [w]
|
||||||
Thread.new { IO.select(rset, wset, nil, 0) }.join
|
Thread.new { IO.select(rset, wset, nil, 0) }.join
|
||||||
end;
|
end;
|
||||||
200000.times do
|
200_000.times do
|
||||||
th = Thread.new { IO.select(rset, wset) }
|
th = Thread.new { IO.select(rset, wset) }
|
||||||
Thread.pass until th.stop?
|
Thread.pass until th.stop?
|
||||||
th.kill
|
th.kill
|
||||||
|
|
Loading…
Add table
Reference in a new issue