diff options
author | Martin Ritchie <ritchiem@apache.org> | 2008-03-24 14:15:39 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2008-03-24 14:15:39 +0000 |
commit | 36d5901e5e795fafcc9ea51dab833f17bdd99403 (patch) | |
tree | b2b2d4362fd82e0cfb08c5c36038184cd5322257 | |
parent | 30c764cf4a22961f169bd5f6716acee85c49c431 (diff) | |
download | qpid-python-36d5901e5e795fafcc9ea51dab833f17bdd99403.tar.gz |
QPID-872 : Adjusted TimeToLive test receive calls to use a wait of 1s(1000) as 100ms was unreasonably short. This was causing test failures on a slower machine where no failure had really occurred.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@640422 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java b/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java index 3afecb47d3..a803bf7da5 100644 --- a/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java +++ b/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java @@ -144,18 +144,18 @@ public class TimeToLiveTest extends TestCase clientConnection.start(); //Receive Message 0 - Message received = consumer.receive(100); + Message received = consumer.receive(1000); Assert.assertNotNull("First message not received", received); Assert.assertTrue("First message doesn't have first set.", received.getBooleanProperty("first")); Assert.assertEquals("First message has incorrect TTL.", 0L, received.getLongProperty("TTL")); - received = consumer.receive(100); + received = consumer.receive(1000); Assert.assertNotNull("Final message not received", received); Assert.assertFalse("Final message has first set.", received.getBooleanProperty("first")); Assert.assertEquals("Final message has incorrect TTL.", 0L, received.getLongProperty("TTL")); - received = consumer.receive(100); + received = consumer.receive(1000); Assert.assertNull("More messages received", received); clientConnection.close(); |