summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2011-10-07 13:37:56 +0000
committerRobert Gemmell <robbie@apache.org>2011-10-07 13:37:56 +0000
commitaebc3e80cccef161d51257bd958331bc5d48768e (patch)
tree9ee3171ebcdc309a695781e354e8c3fcd1da554c
parent467981cab7e5d03ca4df1fb5e8be2423d91cfa07 (diff)
downloadqpid-python-aebc3e80cccef161d51257bd958331bc5d48768e.tar.gz
NO-JIRA: allow test to take longer when run on a persistent broker, due to sporadic failure caused by occasional slowdowns on the Jenkins slaves
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1180035 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/java/systests/src/main/java/org/apache/qpid/server/queue/MultipleTransactedBatchProducerTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/MultipleTransactedBatchProducerTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/MultipleTransactedBatchProducerTest.java
index 460270e188..277e84d66d 100644
--- a/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/MultipleTransactedBatchProducerTest.java
+++ b/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/MultipleTransactedBatchProducerTest.java
@@ -122,7 +122,8 @@ public class MultipleTransactedBatchProducerTest extends QpidBrokerTestCase
producer2.start();
//await delivery of the messages
- boolean result = _receivedLatch.await(75, TimeUnit.SECONDS);
+ int timeout = isBrokerStorePersistent() ? 300 : 75;
+ boolean result = _receivedLatch.await(timeout, TimeUnit.SECONDS);
assertNull("Test failed because: " + String.valueOf(_failMsg), _failMsg);
assertTrue("Some of the messages were not all recieved in the given timeframe, remaining count was: "+_receivedLatch.getCount(),