tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1137175 - /tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java
Date Sat, 18 Jun 2011 11:49:14 GMT
Author: markt
Date: Sat Jun 18 11:49:14 2011
New Revision: 1137175

URL: http://svn.apache.org/viewvc?rev=1137175&view=rev
Log:
Gump is failing. Re-order tests to try and figure out why.

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=1137175&r1=1137174&r2=1137175&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java (original)
+++ tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java Sat Jun 18 11:49:14
2011
@@ -93,8 +93,6 @@ public class TestCometProcessor extends 
         
         // Validate response
         String[] response = buffer.toString().split("\r\n");
-        // Expect 26 lines
-        assertEquals(26, response.length);
         assertEquals("HTTP/1.1 200 OK", response[0]);
         assertEquals("Server: Apache-Coyote/1.1", response[1]);
         assertTrue(response[2].startsWith("Set-Cookie: JSESSIONID="));
@@ -121,6 +119,8 @@ public class TestCometProcessor extends 
         assertEquals("Client: END", response[23]);
         assertEquals("", response[24]);
         assertEquals("0", response[25]);
+        // Expect 26 lines
+        assertEquals(26, response.length);
     }
     
     private boolean isCometSupported() {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message