From 29ed37d05fc67b8e7a1640c7a8c83731f9641a5f Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 13 Jul 2015 10:07:01 +0000 Subject: 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 --- test/io/nonblock/test_flush.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/io/nonblock/test_flush.rb') diff --git a/test/io/nonblock/test_flush.rb b/test/io/nonblock/test_flush.rb index ab54205174..70e65cceed 100644 --- a/test/io/nonblock/test_flush.rb +++ b/test/io/nonblock/test_flush.rb @@ -28,7 +28,7 @@ class TestIONonblock < Test::Unit::TestCase w.flush w << "a" * 4096 result = "" - timeout(10) { + Timeout.timeout(10) { t0 = Thread.new { Thread.pass w.close -- cgit v1.2.3