You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2011/11/16 20:51:14 UTC
svn commit: r1202860 -
/tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java
Author: markt
Date: Wed Nov 16 19:51:14 2011
New Revision: 1202860
URL: http://svn.apache.org/viewvc?rev=1202860&view=rev
Log:
Adjust timing limits for new PING delay
Modified:
tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java
Modified: tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java?rev=1202860&r1=1202859&r2=1202860&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java (original)
+++ tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java Wed Nov 16 19:51:14 2011
@@ -212,14 +212,14 @@ public class TestCometProcessor extends
assertEquals(26, response.length);
} else {
// Failure expected only expected for the fail on begin
- // Failure at any later stage and the reponse headers (including the
- // 200 response code will already have been sent to the client
+ // Failure at any later stage and the response headers (including
+ // the 200 response code will already have been sent to the client
if (SimpleCometServlet.FAIL_ON_BEGIN.equals(initParam)) {
assertEquals("HTTP/1.1 500 Internal Server Error", response[0]);
alv.validateAccessLog(1, 500, 0, 1000);
} else {
assertEquals("HTTP/1.1 200 OK", response[0]);
- alv.validateAccessLog(1, 200, 0, 5000);
+ alv.validateAccessLog(1, 200, 0, 9000);
}
}
@@ -394,7 +394,7 @@ public class TestCometProcessor extends
os.write("4\r\n".getBytes());
os.write("PING\r\n".getBytes());
os.flush();
- Thread.sleep(2000);
+ Thread.sleep(1000);
}
os.write("0\r\n".getBytes());
os.write("\r\n".getBytes());
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org