1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
k0kubun 2018-12-28 14:18:05 +00:00
parent fa3fda1c62
commit b0b0ded5aa

View file

@ -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)