hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1151554 - /httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/conn/tsccm/TestConnPoolByRoute.java
Date Wed, 27 Jul 2011 17:42:55 GMT
Author: jonm
Date: Wed Jul 27 17:42:54 2011
New Revision: 1151554

URL: http://svn.apache.org/viewvc?rev=1151554&view=rev
Log:
HTTPCLIENT-1108: increase timing intervals on thread-related tests to reduce
chances of race conditions.

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/conn/tsccm/TestConnPoolByRoute.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/conn/tsccm/TestConnPoolByRoute.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/conn/tsccm/TestConnPoolByRoute.java?rev=1151554&r1=1151553&r2=1151554&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/conn/tsccm/TestConnPoolByRoute.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/conn/tsccm/TestConnPoolByRoute.java
Wed Jul 27 17:42:54 2011
@@ -369,9 +369,9 @@ public class TestConnPoolByRoute extends
             }
         });
         t.start();
-        Thread.sleep(1);
+        Thread.sleep(5);
         impl.freeEntry(entry, true, 1000, TimeUnit.MILLISECONDS);
-        Thread.sleep(1);
+        Thread.sleep(5);
         assertTrue(f.flag);
     }
     
@@ -393,9 +393,9 @@ public class TestConnPoolByRoute extends
             }
         });
         t.start();
-        Thread.sleep(1);
+        Thread.sleep(5);
         impl.freeEntry(entry, true, 1000, TimeUnit.MILLISECONDS);
-        Thread.sleep(1);
+        Thread.sleep(5);
         assertTrue(f.flag);
     }
     



Mime
View raw message