ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1528406 - /ace/trunk/org.apache.ace.agent/test/org/apache/ace/agent/impl/FeedbackStoreTest.java
Date Wed, 02 Oct 2013 10:07:14 GMT
Author: jawi
Date: Wed Oct  2 10:07:14 2013
New Revision: 1528406

URL: http://svn.apache.org/r1528406
Log:
Made the wait times depend on the number of cores.

Modified:
    ace/trunk/org.apache.ace.agent/test/org/apache/ace/agent/impl/FeedbackStoreTest.java

Modified: ace/trunk/org.apache.ace.agent/test/org/apache/ace/agent/impl/FeedbackStoreTest.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.agent/test/org/apache/ace/agent/impl/FeedbackStoreTest.java?rev=1528406&r1=1528405&r2=1528406&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.agent/test/org/apache/ace/agent/impl/FeedbackStoreTest.java (original)
+++ ace/trunk/org.apache.ace.agent/test/org/apache/ace/agent/impl/FeedbackStoreTest.java Wed
Oct  2 10:07:14 2013
@@ -218,7 +218,7 @@ public class FeedbackStoreTest {
         start.countDown();
 
         // waiting both threads to finish...
-        assertTrue(stop.await(30, TimeUnit.SECONDS));
+        assertTrue(stop.await(10 * writerCount, TimeUnit.SECONDS));
 
         int writtenCount = 0;
         for (int i = 0; i < writers.length; i++) {
@@ -276,7 +276,7 @@ public class FeedbackStoreTest {
         start.countDown();
 
         // waiting both threads to finish...
-        assertTrue(stop.await(30, TimeUnit.SECONDS));
+        assertTrue(stop.await(10 * (writerCount + readerCount), TimeUnit.SECONDS));
 
         int readCount = 0;
         for (int i = 0; i < readers.length; i++) {



Mime
View raw message