* lib/ftp/ftp.rb (Net::FTP#close): restore original read_timeout.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-04-04 04:10:58 +00:00
parent f0cd9107df
commit 7865005fa1
3 changed files with 14 additions and 5 deletions

View file

@ -229,7 +229,8 @@ class FTPTest < Test::Unit::TestCase
assert_equal("TYPE I\r\n", commands.shift)
assert_equal(nil, commands.shift)
ensure
ftp.close if ftp
ftp.close
assert_equal(0.2, ftp.read_timeout)
end
ensure
server.close