From b0b0ded5aa2cf7c4574b057d8326ed4e1c172c12 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Fri, 28 Dec 2018 14:18:05 +0000 Subject: [PATCH] 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 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/webrick/test_utils.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/webrick/test_utils.rb b/test/webrick/test_utils.rb index 8907789b6e..c2b7a36e8a 100644 --- a/test/webrick/test_utils.rb +++ b/test/webrick/test_utils.rb @@ -32,11 +32,11 @@ class TestWEBrickUtils < Test::Unit::TestCase 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)