diff --git a/jetty-server/src/test/java/org/eclipse/jetty/server/ssl/SSLCloseTest.java b/jetty-server/src/test/java/org/eclipse/jetty/server/ssl/SSLCloseTest.java index 501618c7ad4..6487c7ce5b7 100644 --- a/jetty-server/src/test/java/org/eclipse/jetty/server/ssl/SSLCloseTest.java +++ b/jetty-server/src/test/java/org/eclipse/jetty/server/ssl/SSLCloseTest.java @@ -29,7 +29,6 @@ import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.eclipse.jetty.server.Connector; import org.eclipse.jetty.server.Request; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.ServerConnector; @@ -54,13 +53,10 @@ public class SSLCloseTest ServerConnector connector=new ServerConnector(server, sslContextFactory); connector.setPort(0); - server.setConnectors(new Connector[] - {connector}); + server.addConnector(connector); server.setHandler(new WriteHandler()); - server.start(); - SSLContext ctx=SSLContext.getInstance("SSLv3"); ctx.init(null,SslContextFactory.TRUST_ALL_CERTS,new java.security.SecureRandom());