From b2f9deee3ee0ee602fb5f062a4d0774b1ddc5bfc Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 23 Jul 2018 06:08:02 +0000 Subject: [PATCH] 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 --- test/ruby/test_io.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 1c45787648..478ac5ae4a 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -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