            sock = OpenSSL::SSL::SSLSocket.new(sock, ctx)
            sock.sync_close = true
            begin
-@@ -1967,7 +1944,7 @@ def test_active_clear_data_connection
+@@ -1970,7 +1947,7 @@ def test_active_clear_data_connection
        end
        ftp = Net::FTP.new(SERVER_NAME,
                           port: port,

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

         imap
       end
     rescue SystemCallError
@@ -699,14 +697,7 @@ def test_append_fail
   def imaps_test
     server = create_tcp_server
     port = server.addr[1]
