From 656794047121dc5406ae6637d6c590d30a054db5 Mon Sep 17 00:00:00 2001 From: Thomas Becker Date: Mon, 10 Dec 2012 11:01:13 +0100 Subject: [PATCH] HttpTransportOverSPDYTest hide stacktrace --- .../jetty/spdy/server/http/HttpTransportOverSPDYTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/http/HttpTransportOverSPDYTest.java b/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/http/HttpTransportOverSPDYTest.java index 046f9437d6d..c25e73a0e30 100644 --- a/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/http/HttpTransportOverSPDYTest.java +++ b/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/http/HttpTransportOverSPDYTest.java @@ -37,6 +37,8 @@ import org.eclipse.jetty.spdy.api.Stream; import org.eclipse.jetty.util.BufferUtil; import org.eclipse.jetty.util.Callback; import org.eclipse.jetty.util.Fields; +import org.eclipse.jetty.util.log.Log; +import org.eclipse.jetty.util.log.StdErrLog; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -240,6 +242,7 @@ public class HttpTransportOverSPDYTest @Test public void testVerifyThatAStreamIsNotCommittedTwice() throws IOException { + ((StdErrLog)Log.getLogger(HttpTransportOverSPDY.class)).setHideStacks(true); ByteBuffer content = createRandomByteBuffer(); boolean lastContent = false; @@ -252,6 +255,8 @@ public class HttpTransportOverSPDYTest verify(stream, times(0)).data(any(DataInfo.class)); verify(stream, times(1)).data(any(DataInfo.class), anyLong(), any(TimeUnit.class), any(Callback.class)); + + ((StdErrLog)Log.getLogger(HttpTransportOverSPDY.class)).setHideStacks(false); } private ByteBuffer createRandomByteBuffer()