summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-23 06:08:02 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-23 06:08:02 +0000
commitb2f9deee3ee0ee602fb5f062a4d0774b1ddc5bfc (patch)
treeeef67680517cdd72220384651936af95b70ec05b
parent8a3ed368af394b1510c9e57721e42b338976151e (diff)
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
-rw-r--r--test/ruby/test_io.rb4
1 files 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