ruby-changes:54402
From: k0kubun <ko1@a...>
Date: Fri, 28 Dec 2018 23:18:09 +0900 (JST)
Subject: [ruby-changes:54402] k0kubun:r66616 (trunk): webrick/test_utils.rb: loosen timeout severity
k0kubun 2018-12-28 23:18:05 +0900 (Fri, 28 Dec 2018) New Revision: 66616 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66616 Log: webrick/test_utils.rb: loosen timeout severity to stabilize CI failure like: https://rubyci.org/logs/rubyci.s3.amazonaws.com/osx1013/ruby-trunk/log/20181228T114501Z.fail.html.gz Modified files: trunk/test/webrick/test_utils.rb Index: test/webrick/test_utils.rb =================================================================== --- test/webrick/test_utils.rb (revision 66615) +++ test/webrick/test_utils.rb (revision 66616) @@ -32,11 +32,11 @@ class TestWEBrickUtils < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/webrick/test_utils.rb#L32 m = WEBrick::Utils i = 0 assert_raise(Timeout::Error){ - m.timeout(0.2){ - assert_raise(Timeout::Error){ m.timeout(0.1){ i += 1; sleep } } + m.timeout(1){ + assert_raise(Timeout::Error){ m.timeout(0.1){ i += 1; sleep(1) } } assert_not_expired(m) i += 1 - sleep + sleep(2) } } assert_equal(2, i) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/