From 36d5901e5e795fafcc9ea51dab833f17bdd99403 Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Mon, 24 Mar 2008 14:15:39 +0000 Subject: 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 --- .../src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'java') 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(); -- cgit v1.2.1