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

ruby-changes:29416

From: nobu <ko1@a...>
Date: Thu, 20 Jun 2013 13:09:01 +0900 (JST)
Subject: [ruby-changes:29416] nobu:r41468 (trunk): test_fiber.rb: longer timeout

nobu	2013-06-20 13:08:49 +0900 (Thu, 20 Jun 2013)

  New Revision: 41468

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41468

  Log:
    test_fiber.rb: longer timeout
    
    * test/ruby/test_fiber.rb (test_many_fibers): make timeout longer.
      10sec is not sufficient.

  Modified files:
    trunk/test/ruby/test_fiber.rb

Index: test/ruby/test_fiber.rb
===================================================================
--- test/ruby/test_fiber.rb	(revision 41467)
+++ test/ruby/test_fiber.rb	(revision 41468)
@@ -46,7 +46,7 @@ class TestFiber < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_fiber.rb#L46
   end
 
   def test_many_fibers_with_threads
-    assert_normal_exit %q{
+    assert_normal_exit <<-SRC, timeout: 60
       max = 1000
       @cnt = 0
       (1..100).map{|ti|
@@ -60,7 +60,7 @@ class TestFiber < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_fiber.rb#L60
       }.each{|t|
         t.join
       }
-    }
+    SRC
   end
 
   def test_error

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

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