413737 hide stacktrace in ReferrerPushStrategyTest

This commit is contained in:
Thomas Becker 2013-08-15 13:00:50 +02:00
parent 050ac79f3d
commit 345ee15d87
1 changed files with 2 additions and 2 deletions

View File

@ -119,11 +119,11 @@ public class ReferrerPushStrategyTest extends AbstractHTTPSPDYTest
@Test
public void testClientResetsPushStreams() throws Exception
{
((StdErrLog)Log.getLogger("org.eclipse.jetty.server.HttpChannel")).setHideStacks(true);
sendMainRequestAndCSSRequest(null, false);
final CountDownLatch pushDataLatch = new CountDownLatch(1);
final CountDownLatch pushSynHeadersValid = new CountDownLatch(1);
Session session = startClient(version, serverAddress, null);
((StdErrLog)LOG.getLogger("org.eclipse.jetty.spdy.StandardSession")).setHideStacks(true);
// Send main request. That should initiate the push push's which get reset by the client
sendRequest(session, mainRequestHeaders, pushSynHeadersValid, pushDataLatch, true);
@ -131,7 +131,7 @@ public class ReferrerPushStrategyTest extends AbstractHTTPSPDYTest
assertThat("Push push headers valid", pushSynHeadersValid.await(5, TimeUnit.SECONDS), is(true));
sendRequest(session, associatedCSSRequestHeaders, pushSynHeadersValid, pushDataLatch, true);
((StdErrLog)LOG.getLogger("org.eclipse.jetty.spdy.StandardSession")).setHideStacks(false);
((StdErrLog)Log.getLogger("org.eclipse.jetty.server.HttpChannel")).setHideStacks(false);
}
@Test