hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r562849 - in /jakarta/httpcomponents/httpcore/trunk: module-nio/src/test/java/org/apache/http/nio/protocol/TestNIOHttp.java module-niossl/src/test/java/org/apache/http/impl/nio/reactor/TestNIOSSLHttp.java
Date Sun, 05 Aug 2007 11:29:34 GMT
Author: olegk
Date: Sun Aug  5 04:29:33 2007
New Revision: 562849

URL: http://svn.apache.org/viewvc?view=rev&rev=562849
Log:
Increased wait time for connections in protocol tests in NIO modules

Modified:
    jakarta/httpcomponents/httpcore/trunk/module-nio/src/test/java/org/apache/http/nio/protocol/TestNIOHttp.java
    jakarta/httpcomponents/httpcore/trunk/module-niossl/src/test/java/org/apache/http/impl/nio/reactor/TestNIOSSLHttp.java

Modified: jakarta/httpcomponents/httpcore/trunk/module-nio/src/test/java/org/apache/http/nio/protocol/TestNIOHttp.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-nio/src/test/java/org/apache/http/nio/protocol/TestNIOHttp.java?view=diff&rev=562849&r1=562848&r2=562849
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-nio/src/test/java/org/apache/http/nio/protocol/TestNIOHttp.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-nio/src/test/java/org/apache/http/nio/protocol/TestNIOHttp.java
Sun Aug  5 04:29:33 2007
@@ -370,7 +370,6 @@
                     try {
                         conn.close();
                     } catch (IOException ex) {
-                        fail(ex.getMessage());
                     }
                 }
             }
@@ -400,7 +399,7 @@
                     responseData[i]);
         }
      
-        clientEventListener.await(connNo, 1000);
+        clientEventListener.await(connNo, 10000);
         assertEquals(connNo, clientEventListener.getConnCount());
         
         this.client.shutdown();
@@ -515,7 +514,6 @@
                     try {
                         conn.close();
                     } catch (IOException ex) {
-                        fail(ex.getMessage());
                     }
                 }
             }
@@ -545,7 +543,7 @@
                     responseData[i]);
         }
      
-        clientEventListener.await(connNo, 1000);
+        clientEventListener.await(connNo, 10000);
         assertEquals(connNo, clientEventListener.getConnCount());
         
         this.client.shutdown();
@@ -660,7 +658,6 @@
                     try {
                         conn.close();
                     } catch (IOException ex) {
-                        fail(ex.getMessage());
                     }
                 }
             }
@@ -690,7 +687,7 @@
                     responseData[i]);
         }
      
-        clientEventListener.await(connNo, 1000);
+        clientEventListener.await(connNo, 10000);
         assertEquals(connNo, clientEventListener.getConnCount());
         
         this.client.shutdown();
@@ -810,7 +807,6 @@
                     try {
                         conn.close();
                     } catch (IOException ex) {
-                        fail(ex.getMessage());
                     }
                 }
             }
@@ -840,7 +836,7 @@
                     responseData[i]);
         }
      
-        clientEventListener.await(connNo, 1000);
+        clientEventListener.await(connNo, 10000);
         assertEquals(connNo, clientEventListener.getConnCount());
         
         this.client.shutdown();
@@ -958,7 +954,6 @@
                     try {
                         conn.close();
                     } catch (IOException ex) {
-                        fail(ex.getMessage());
                     }
                 }
             }
@@ -988,7 +983,7 @@
                     responseData[i]);
         }
      
-        clientEventListener.await(connNo, 1000);
+        clientEventListener.await(connNo, 10000);
         assertEquals(connNo, clientEventListener.getConnCount());
         
         this.client.shutdown();
@@ -1111,7 +1106,6 @@
                     try {
                         conn.close();
                     } catch (IOException ex) {
-                        fail(ex.getMessage());
                     }
                 }
             }
@@ -1238,7 +1232,6 @@
                     try {
                         conn.close();
                     } catch (IOException ex) {
-                        fail(ex.getMessage());
                     }
                 }
             }
@@ -1270,7 +1263,7 @@
                     responseData[i]);
         }
      
-        clientEventListener.await(connNo, 1000);
+        clientEventListener.await(connNo, 10000);
         assertEquals(connNo, clientEventListener.getConnCount());
 
         List[] responseDataGET = responseData; 
@@ -1288,7 +1281,7 @@
                     responseData[i]);
         }
      
-        clientEventListener.await(connNo * 2, 1000);
+        clientEventListener.await(connNo * 2, 10000);
         assertEquals(connNo * 2, clientEventListener.getConnCount());
         
         this.client.shutdown();

Modified: jakarta/httpcomponents/httpcore/trunk/module-niossl/src/test/java/org/apache/http/impl/nio/reactor/TestNIOSSLHttp.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-niossl/src/test/java/org/apache/http/impl/nio/reactor/TestNIOSSLHttp.java?view=diff&rev=562849&r1=562848&r2=562849
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-niossl/src/test/java/org/apache/http/impl/nio/reactor/TestNIOSSLHttp.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-niossl/src/test/java/org/apache/http/impl/nio/reactor/TestNIOSSLHttp.java
Sun Aug  5 04:29:33 2007
@@ -276,7 +276,6 @@
                     try {
                         conn.close();
                     } catch (IOException ex) {
-                        fail(ex.getMessage());
                     }
                 }
             }
@@ -306,7 +305,7 @@
                     responseData[i]);
         }
      
-        clientEventListener.await(connNo, 1000);
+        clientEventListener.await(connNo, 10000);
         assertEquals(connNo, clientEventListener.getConnCount());
         
         this.client.shutdown();
@@ -422,7 +421,6 @@
                     try {
                         conn.close();
                     } catch (IOException ex) {
-                        fail(ex.getMessage());
                     }
                 }
             }
@@ -452,7 +450,7 @@
                     responseData[i]);
         }
      
-        clientEventListener.await(connNo, 1000);
+        clientEventListener.await(connNo, 10000);
         assertEquals(connNo, clientEventListener.getConnCount());
         
         this.client.shutdown();
@@ -568,7 +566,6 @@
                     try {
                         conn.close();
                     } catch (IOException ex) {
-                        fail(ex.getMessage());
                     }
                 }
             }
@@ -598,7 +595,7 @@
                     responseData[i]);
         }
      
-        clientEventListener.await(connNo, 1000);
+        clientEventListener.await(connNo, 10000);
         assertEquals(connNo, clientEventListener.getConnCount());
         
         this.client.shutdown();
@@ -719,7 +716,6 @@
                     try {
                         conn.close();
                     } catch (IOException ex) {
-                        fail(ex.getMessage());
                     }
                 }
             }
@@ -749,7 +745,7 @@
                     responseData[i]);
         }
      
-        clientEventListener.await(connNo, 1000);
+        clientEventListener.await(connNo, 10000);
         assertEquals(connNo, clientEventListener.getConnCount());
         
         this.client.shutdown();



Mime
View raw message