diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-13 10:07:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-13 10:07:01 +0000 |
commit | 29ed37d05fc67b8e7a1640c7a8c83731f9641a5f (patch) | |
tree | 70a84bbd1128ba33d3101bf9323a6977e6b2c754 /test/webrick | |
parent | 9155d91613f696008ebac02effbd13e50d59ad9d (diff) | |
download | ruby-29ed37d05fc67b8e7a1640c7a8c83731f9641a5f.tar.gz |
use Timeout.timeout
* time: Object#timeout has been deprecated a long time ago, use
Timeout.timeout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/webrick')
-rw-r--r-- | test/webrick/test_httpserver.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/webrick/test_httpserver.rb b/test/webrick/test_httpserver.rb index 5cd4ba5866..933aa0e02e 100644 --- a/test/webrick/test_httpserver.rb +++ b/test/webrick/test_httpserver.rb @@ -355,7 +355,7 @@ class TestWEBrickHTTPServer < Test::Unit::TestCase req = Net::HTTP::Get.new("/") req['Connection'] = 'Keep-Alive' begin - timeout(2) do + Timeout.timeout(2) do http.request(req){|res| assert_equal("foo", res.body) } end rescue Timeout::Error |