diff options
author | Arnaud Simon <arnaudsimon@apache.org> | 2008-04-03 09:41:42 +0000 |
---|---|---|
committer | Arnaud Simon <arnaudsimon@apache.org> | 2008-04-03 09:41:42 +0000 |
commit | 799af7cedfce9deb22ce6390215aeda8d77c694c (patch) | |
tree | 3bc58b41de511e31472d3729a35e8594bddb52f8 | |
parent | 9f2984071f88cdcd6c59e9bdb048e2af6eb8a9d1 (diff) | |
download | qpid-python-799af7cedfce9deb22ce6390215aeda8d77c694c.tar.gz |
QPID-897 this test was intermittently failing because of too short timeouts. This fix is a temporary measure until we agree about using a configurable receive timeout.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@644245 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/client/src/test/java/org/apache/qpid/test/unit/topic/DurableSubscriptionTest.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/java/client/src/test/java/org/apache/qpid/test/unit/topic/DurableSubscriptionTest.java b/java/client/src/test/java/org/apache/qpid/test/unit/topic/DurableSubscriptionTest.java index 225ce9bc8c..23bd2a960a 100644 --- a/java/client/src/test/java/org/apache/qpid/test/unit/topic/DurableSubscriptionTest.java +++ b/java/client/src/test/java/org/apache/qpid/test/unit/topic/DurableSubscriptionTest.java @@ -134,12 +134,12 @@ public class DurableSubscriptionTest extends QpidTestCase Message msg; msg = consumer1.receive(); assertEquals("A", ((TextMessage) msg).getText()); - msg = consumer1.receive(100); + msg = consumer1.receive(1000); assertEquals(null, msg); msg = consumer2.receive(); assertEquals("A", ((TextMessage) msg).getText()); - msg = consumer2.receive(100); + msg = consumer2.receive(1000); assertEquals(null, msg); consumer2.close(); @@ -150,17 +150,17 @@ public class DurableSubscriptionTest extends QpidTestCase producer.send(session1.createTextMessage("B")); _logger.info("Receive message on consumer 1 :expecting B"); - msg = consumer1.receive(100); + msg = consumer1.receive(1000); assertEquals("B", ((TextMessage) msg).getText()); _logger.info("Receive message on consumer 1 :expecting null"); - msg = consumer1.receive(100); + msg = consumer1.receive(1000); assertEquals(null, msg); _logger.info("Receive message on consumer 3 :expecting B"); - msg = consumer3.receive(100); + msg = consumer3.receive(1000); assertEquals("B", ((TextMessage) msg).getText()); _logger.info("Receive message on consumer 3 :expecting null"); - msg = consumer3.receive(100); + msg = consumer3.receive(1000); assertEquals(null, msg); // we need to unsubscribe as the session is NO_ACKNOWLEDGE // messages for the durable subscriber are not deleted so the test cannot |