      ssl_server = OpenSSL::SSL::SSLServer.new(server, ctx)
      started = false
      ths = Thread.start do
-@@ -797,14 +789,7 @@ def starttls_test
+@@ -806,14 +798,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 03692c233a..8159fedb66 100644
--- a/test/net/imap/test_imap.rb
+++ b/test/net/imap/test_imap.rb
@@ -2,11 +2,10 @@

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