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++) {