From 7865005fa1a42803124ecf5f0538c3753bc7f91c Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 4 Apr 2012 04:10:58 +0000 Subject: * 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 --- test/net/ftp/test_ftp.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb index cee4649493..8ea0234762 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 -- cgit v1.2.3