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

ruby-changes:39257

From: usa <ko1@a...>
Date: Wed, 22 Jul 2015 18:05:08 +0900 (JST)
Subject: [ruby-changes:39257] usa:r51338 (trunk): * test/webrick/test_utils.rb (TestWEBrickUtils#test_nested_timeout_outer): seems

usa	2015-07-22 18:04:57 +0900 (Wed, 22 Jul 2015)

  New Revision: 51338

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

  Log:
    * test/webrick/test_utils.rb (TestWEBrickUtils#test_nested_timeout_outer): seems
      to be too short for mswin CI.  fixed occasional failure introduced at r51235.

  Modified files:
    trunk/test/webrick/test_utils.rb
Index: test/webrick/test_utils.rb
===================================================================
--- test/webrick/test_utils.rb	(revision 51337)
+++ test/webrick/test_utils.rb	(revision 51338)
@@ -26,8 +26,8 @@ class TestWEBrickUtils < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/webrick/test_utils.rb#L26
     m = WEBrick::Utils
     i = 0
     assert_raise(Timeout::Error){
-      m.timeout(0.02){
-        assert_raise(Timeout::Error){ m.timeout(0.01){ i += 1; sleep } }
+      m.timeout(0.2){
+        assert_raise(Timeout::Error){ m.timeout(0.1){ i += 1; sleep } }
         assert_not_expired(m)
         i += 1
         sleep

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

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