increased timeout to ensure test always works

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383632 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-03-06 19:37:37 +00:00
parent d9b9427a5f
commit d5193d217f
1 changed files with 2 additions and 2 deletions

View File

@ -444,7 +444,7 @@ abstract public class JmsTransactionTestSupport extends TestSupport implements M
session.commit();
log.info("About to consume message 1");
Message message = consumer.receive(1000);
Message message = consumer.receive(5000);
List body = assertReceivedObjectMessageWithListBody(message);
@ -460,7 +460,7 @@ abstract public class JmsTransactionTestSupport extends TestSupport implements M
body.add("This should never be seen!");
session.rollback();
message = consumer.receive(1000);
message = consumer.receive(5000);
List secondBody = assertReceivedObjectMessageWithListBody(message);
assertNotSame("Second call should return a different body", secondBody, body);
session.commit();