406759 supressed stacktrace in ReferrerPushStrategyTest

This commit is contained in:
Thomas Becker 2013-06-06 16:46:29 +02:00
parent 4c3a777ed5
commit bf9a4dd0c0
1 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,7 @@ import org.eclipse.jetty.util.Fields;
import org.eclipse.jetty.util.Promise; import org.eclipse.jetty.util.Promise;
import org.eclipse.jetty.util.log.Log; import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.Logger; import org.eclipse.jetty.util.log.Logger;
import org.eclipse.jetty.util.log.StdErrLog;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore; import org.junit.Ignore;
@ -181,6 +182,8 @@ public class ReferrerPushStrategyTest extends AbstractHTTPSPDYTest
SettingsInfo settingsInfo = new SettingsInfo(settings); SettingsInfo settingsInfo = new SettingsInfo(settings);
session.settings(settingsInfo); session.settings(settingsInfo);
((StdErrLog)Log.getLogger("org.eclipse.jetty.spdy.server.http" +
".HttpTransportOverSPDY$PushResourceCoordinator$1")).setHideStacks(true);
session.syn(new SynInfo(mainRequestHeaders, true), new StreamFrameListener.Adapter() session.syn(new SynInfo(mainRequestHeaders, true), new StreamFrameListener.Adapter()
{ {
@Override @Override
@ -192,6 +195,8 @@ public class ReferrerPushStrategyTest extends AbstractHTTPSPDYTest
}); });
assertThat("No push stream is received", pushReceivedLatch.await(1, TimeUnit.SECONDS), is(false)); assertThat("No push stream is received", pushReceivedLatch.await(1, TimeUnit.SECONDS), is(false));
((StdErrLog)Log.getLogger("org.eclipse.jetty.spdy.server.http" +
".HttpTransportOverSPDY$PushResourceCoordinator$1")).setHideStacks(false);
} }
@Test @Test