Turn off stacktrace logging for testFailServerUpgrade testcase

This commit is contained in:
Joakim Erdfelt 2023-03-29 14:54:26 -05:00
parent 9bb38ea469
commit fbc0e14abb
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ import java.util.concurrent.BlockingQueue;
import java.util.concurrent.TimeUnit;
import org.eclipse.jetty.logging.StacklessLogging;
import org.eclipse.jetty.server.Response;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.server.handler.ContextHandler;
@ -142,7 +143,7 @@ public class WebSocketProxyTest
ClientUpgradeRequest upgradeRequest = new ClientUpgradeRequest();
upgradeRequest.setSubProtocols("fail");
try (StacklessLogging ignored = new StacklessLogging(HttpChannelState.class))
try (StacklessLogging ignored = new StacklessLogging(HttpChannelState.class, Response.class))
{
client.connect(clientSocket, proxyUri, upgradeRequest);
assertTrue(clientSocket.closeLatch.await(5, TimeUnit.SECONDS));