summaryrefslogtreecommitdiff
path: root/test/net/ftp
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-04 04:10:58 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-04 04:10:58 +0000
commit7865005fa1a42803124ecf5f0538c3753bc7f91c (patch)
treed9e9f4c716474086b656a1d14f281bd918b132dc /test/net/ftp
parentf0cd9107dfae482ca8b7d68f5fb834648f8bd50f (diff)
* 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
Diffstat (limited to 'test/net/ftp')
-rw-r--r--test/net/ftp/test_ftp.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb
index cee4649..8ea0234 100644
--- a/test/net/ftp/test_ftp.rb
+++ b/test/net/ftp/test_ftp.rb
@@ -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