tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r1417044 - /tomcat/trunk/test/org/apache/coyote/http11/upgrade/TestUpgrade.java
Date Tue, 04 Dec 2012 17:23:47 GMT
Author: kkolinko
Date: Tue Dec  4 17:23:31 2012
New Revision: 1417044

URL: http://svn.apache.org/viewvc?rev=1417044&view=rev
Log:
Address Mark's comment to r1413324. Check that two messages were echoed back.

Modified:
    tomcat/trunk/test/org/apache/coyote/http11/upgrade/TestUpgrade.java

Modified: tomcat/trunk/test/org/apache/coyote/http11/upgrade/TestUpgrade.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/coyote/http11/upgrade/TestUpgrade.java?rev=1417044&r1=1417043&r2=1417044&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/coyote/http11/upgrade/TestUpgrade.java (original)
+++ tomcat/trunk/test/org/apache/coyote/http11/upgrade/TestUpgrade.java Tue Dec  4 17:23:31
2012
@@ -88,10 +88,11 @@ public class TestUpgrade extends TomcatB
         pw.println(MESSAGE);
         pw.flush();
 
-        String response = reader.readLine();
-
         // Note: BufferedReader.readLine() strips new lines
         //       ServletInputStream.readLine() does not strip new lines
+        String response = reader.readLine();
+        Assert.assertEquals(MESSAGE, response);
+        response = reader.readLine();
         Assert.assertEquals(MESSAGE, response);
     }
 



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


Mime
View raw message