1
0
Fork 0
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:
ko1 2018-07-23 06:08:02 +00:00
parent 8a3ed368af
commit b2f9deee3e

View file

@ -3802,13 +3802,13 @@ __END__
end
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
rset = [r]
wset = [w]
Thread.new { IO.select(rset, wset, nil, 0) }.join
end;
200000.times do
200_000.times do
th = Thread.new { IO.select(rset, wset) }
Thread.pass until th.stop?
th.kill