Author: remm
Date: Sun Apr 27 11:24:34 2014
New Revision: 1590377

URL: http://svn.apache.org/r1590377
Log:
Cleanup the test output (mixing out and err is confusing), add some info and 
wait more (somehow NIO2 gets an exception later).

Modified:
    tomcat/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java

Modified: tomcat/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java?rev=1590377&r1=1590376&r2=1590377&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java 
(original)
+++ tomcat/trunk/test/org/apache/catalina/connector/TestCoyoteAdapter.java Sun 
Apr 27 11:24:34 2014
@@ -295,17 +295,19 @@ public class TestCoyoteAdapter extends T
         client.sendRequest();
 
         for (int i = 0; i < 10; i++) {
-            System.out.println(client.readLine());
+            System.err.println(client.readLine());
         }
 
         client.disconnect();
 
         // Wait for server thread to stop
         int count = 0;
-        while (servlet.getThread().isAlive() && count < 10) {
+        while (servlet.getThread().isAlive() && count < 20) {
             Thread.sleep(250);
             count ++;
         }
+        System.err.println("Wait for " + (count * 250) + "ms");
+
         Assert.assertTrue(servlet.isCompleted());
     }
 
@@ -348,6 +350,7 @@ public class TestCoyoteAdapter extends T
                             os.flush();
                             Thread.sleep(1000);
                         } catch (Exception e) {
+                            System.err.println("Exception caught " + 
e.getMessage());
                             try {
                                 // Note if request times out before this
                                 // exception is thrown and the complete call



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

Reply via email to