Author: markt Date: Tue Jan 21 22:45:35 2014 New Revision: 1560214 URL: http://svn.apache.org/r1560214 Log: Back port unit test fixes / improvements
Modified: tomcat/tc7.0.x/trunk/ (props changed) tomcat/tc7.0.x/trunk/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java Propchange: tomcat/tc7.0.x/trunk/ ------------------------------------------------------------------------------ Merged /tomcat/trunk:r1560212-1560213 Modified: tomcat/tc7.0.x/trunk/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java?rev=1560214&r1=1560213&r2=1560214&view=diff ============================================================================== --- tomcat/tc7.0.x/trunk/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java (original) +++ tomcat/tc7.0.x/trunk/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java Tue Jan 21 22:45:35 2014 @@ -98,6 +98,12 @@ public class TestWebSocketFrameClient ex @Test public void testBug56032() throws Exception { + // TODO Investigate options to get this test to pass with the HTTP BIO + // connector. + if (getTomcatInstance().getConnector().getProtocol().equals( + "org.apache.coyote.http11.Http11Protocol")) { + return; + } Tomcat tomcat = getTomcatInstance(); // Must have a real docBase - just use temp @@ -148,7 +154,7 @@ public class TestWebSocketFrameClient ex // should be a lot faster. System.out.println("Waiting for connection to be closed"); count = 0; - limit = 10000; + limit = (TesterFirehoseServer.SEND_TIME_OUT_MILLIS * 2) / 100; while (TesterFirehoseServer.Endpoint.getOpenConnectionCount() != 0 && count < limit) { Thread.sleep(100); count ++; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org