  
    def setup
      @thread = nil
-@@ -1721,7 +1719,7 @@ def test_tls_with_ca_file
+@@ -1724,7 +1722,7 @@ def test_tls_with_ca_file
            begin
              Net::FTP.new(SERVER_NAME,
                           :port => port,

Add shared util.rb file with create_ssl_ctx method
Removes duplicated code in ftp, imap, & smtp
diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb
index a5219644bb..1127d85649 100644
--- a/test/net/ftp/test_ftp.rb
+++ b/test/net/ftp/test_ftp.rb
@@ -6,6 +6,7 @@

           rescue SystemCallError
             skip $!
           end
@@ -1749,7 +1747,7 @@ def test_tls_post_connection_check
           # so the following code should raise a SSLError.
           Net::FTP.new(SERVER_ADDR,
                        :port => port,
