mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
webrick/test_utils.rb: loosen timeout severity
to stabilize CI failure like:
20181228
T114501Z.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:
parent
fa3fda1c62
commit
b0b0ded5aa
1 changed files with 3 additions and 3 deletions
|
@ -32,11 +32,11 @@ class TestWEBrickUtils < Test::Unit::TestCase
|
||||||
m = WEBrick::Utils
|
m = WEBrick::Utils
|
||||||
i = 0
|
i = 0
|
||||||
assert_raise(Timeout::Error){
|
assert_raise(Timeout::Error){
|
||||||
m.timeout(0.2){
|
m.timeout(1){
|
||||||
assert_raise(Timeout::Error){ m.timeout(0.1){ i += 1; sleep } }
|
assert_raise(Timeout::Error){ m.timeout(0.1){ i += 1; sleep(1) } }
|
||||||
assert_not_expired(m)
|
assert_not_expired(m)
|
||||||
i += 1
|
i += 1
|
||||||
sleep
|
sleep(2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assert_equal(2, i)
|
assert_equal(2, i)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue