[前][次][番号順一覧][スレッド一覧]

ruby-changes:51806

From: ko1 <ko1@a...>
Date: Mon, 23 Jul 2018 15:08:10 +0900 (JST)
Subject: [ruby-changes:51806] ko1:r64019 (trunk): increase timeout seconds.

ko1	2018-07-23 15:08:02 +0900 (Mon, 23 Jul 2018)

  New Revision: 64019

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64019

  Log:
    increase timeout seconds.
    * test/ruby/test_io.rb (test_select_leak): increase timeout seconds
      to pass this test on a high-load machine.

  Modified files:
    trunk/test/ruby/test_io.rb
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 64018)
+++ test/ruby/test_io.rb	(revision 64019)
@@ -3802,13 +3802,13 @@ __END__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L3802
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]