summaryrefslogtreecommitdiff
path: root/test/drb/ut_drb.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-13 10:07:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-13 10:07:01 +0000
commitbeb1c085d582b4ac187309560eb871dda5bc3c28 (patch)
tree70a84bbd1128ba33d3101bf9323a6977e6b2c754 /test/drb/ut_drb.rb
parent42f1ff127249fe4d86c0f7b7ef2b920cbb71601b (diff)
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/drb/ut_drb.rb')
-rw-r--r--test/drb/ut_drb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/drb/ut_drb.rb b/test/drb/ut_drb.rb
index c2a5f62331f..0dd0988a7da 100644
--- a/test/drb/ut_drb.rb
+++ b/test/drb/ut_drb.rb
@@ -53,7 +53,7 @@ class DRbEx
end
def do_timeout(n)
- timeout(0.1) do
+ Timeout.timeout(0.1) do
n.sleep(2)
end
end