You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ri...@apache.org on 2008/03/24 15:15:41 UTC
svn commit: r640422 -
/incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java
Author: ritchiem
Date: Mon Mar 24 07:15:39 2008
New Revision: 640422
URL: http://svn.apache.org/viewvc?rev=640422&view=rev
Log:
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.
Modified:
incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java
Modified: incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java?rev=640422&r1=640421&r2=640422&view=diff
==============================================================================
--- incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java (original)
+++ incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java Mon Mar 24 07:15:39 2008
@@ -144,18 +144,18 @@
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();