diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-28 14:18:05 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-28 14:18:05 +0000 |
commit | b0b0ded5aa2cf7c4574b057d8326ed4e1c172c12 (patch) | |
tree | 87ca6a3f022d0efdb6fa9c81326fe4bc8e6c6853 /test/webrick | |
parent | fa3fda1c620b14872dadc81b8b790e9dce80a619 (diff) | |
download | ruby-b0b0ded5aa2cf7c4574b057d8326ed4e1c172c12.tar.gz |
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
Diffstat (limited to 'test/webrick')
-rw-r--r-- | test/webrick/test_utils.rb | 6 |
1 files 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) |