summaryrefslogtreecommitdiff
path: root/test/net/ftp/test_ftp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/net/ftp/test_ftp.rb')
-rw-r--r--test/net/ftp/test_ftp.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb
index a8d34c6..3af00e7 100644
--- a/test/net/ftp/test_ftp.rb
+++ b/test/net/ftp/test_ftp.rb
@@ -11,9 +11,12 @@ class FTPTest < Test::Unit::TestCase
def setup
@thread = nil
+ @default_passive = Net::FTP.default_passive
+ Net::FTP.default_passive = false
end
def teardown
+ Net::FTP.default_passive = @default_passive
if @thread
@thread.join
end