cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1182715 - /cxf/trunk/rt/core/src/test/java/org/apache/cxf/workqueue/AutomaticWorkQueueTest.java
Date Thu, 13 Oct 2011 08:30:26 GMT
Author: ningjiang
Date: Thu Oct 13 08:30:26 2011
New Revision: 1182715

URL: http://svn.apache.org/viewvc?rev=1182715&view=rev
Log:
Try to fix the AutomaticWorkQueueTest failure in slow box

Modified:
    cxf/trunk/rt/core/src/test/java/org/apache/cxf/workqueue/AutomaticWorkQueueTest.java

Modified: cxf/trunk/rt/core/src/test/java/org/apache/cxf/workqueue/AutomaticWorkQueueTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/test/java/org/apache/cxf/workqueue/AutomaticWorkQueueTest.java?rev=1182715&r1=1182714&r2=1182715&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/test/java/org/apache/cxf/workqueue/AutomaticWorkQueueTest.java (original)
+++ cxf/trunk/rt/core/src/test/java/org/apache/cxf/workqueue/AutomaticWorkQueueTest.java Thu
Oct 13 08:30:26 2011
@@ -148,14 +148,14 @@ public class AutomaticWorkQueueTest exte
                 }
             }
 
-            while (workqueue.getActiveCount() < 0) {
+            while (workqueue.getActiveCount() < DEFAULT_HIGH_WATER_MARK - 1) {
                 try {
                     Thread.sleep(250);
                 } catch (InterruptedException ex) {
                     // ignore
                 }
             }
-
+            
             for (int i = 0; i < DEFAULT_MAX_QUEUE_SIZE; i++) {
                 fillers[i] = new BlockingWorkItem();
                 try {



Mime
View raw message