From fac047905a0d4d199ae01c1674f82d951556ce2e Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Fri, 12 Aug 2022 08:31:28 +1000 Subject: [PATCH] suppress stack Signed-off-by: Greg Wilkins --- .../org/eclipse/jetty/server/OptionalSslConnectionTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/OptionalSslConnectionTest.java b/jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/OptionalSslConnectionTest.java index fcfc194fe2a..2444e0003fc 100644 --- a/jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/OptionalSslConnectionTest.java +++ b/jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/OptionalSslConnectionTest.java @@ -22,6 +22,7 @@ import java.util.function.Function; import org.eclipse.jetty.http.HttpStatus; import org.eclipse.jetty.http.HttpTester; +import org.eclipse.jetty.logging.StacklessLogging; import org.eclipse.jetty.toolchain.test.MavenTestingUtils; import org.eclipse.jetty.util.Callback; import org.eclipse.jetty.util.ssl.SslContextFactory; @@ -218,7 +219,8 @@ public class OptionalSslConnectionTest server.setHandler(new EmptyServerHandler()); server.start(); - try (Socket socket = new Socket(server.getURI().getHost(), server.getURI().getPort())) + try (Socket socket = new Socket(server.getURI().getHost(), server.getURI().getPort()); + StacklessLogging ignored = new StacklessLogging(DetectorConnectionFactory.class)) { OutputStream sslOutput = socket.getOutputStream(); String request =