  
    def setup
      @do_not_reverse_lookup = Socket.do_not_reverse_lookup
-@@ -748,14 +747,7 @@ def test_append_fail
+@@ -757,14 +756,7 @@ def test_append_fail
    def imaps_test
      server = create_tcp_server
      port = server.addr[1]

     ssl_server = OpenSSL::SSL::SSLServer.new(server, ctx)
     started = false
     ths = Thread.start do
@@ -797,14 +789,7 @@ def starttls_test
         sock.print("* OK test server\r\n")
         sock.gets
         sock.print("RUBY0001 OK completed\r\n")

 
     http.start
diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb
index 6c6a657552..df104ef44e 100644
--- a/test/net/imap/test_imap.rb
+++ b/test/net/imap/test_imap.rb
@@ -2,11 +2,10 @@
