[jboss-cvs] JBossAS SVN: r91504 - branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/ejb3/jbpapp2260/unit.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jul 21 13:45:37 EDT 2009
Author: wolfc
Date: 2009-07-21 13:45:37 -0400 (Tue, 21 Jul 2009)
New Revision: 91504
Modified:
branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/ejb3/jbpapp2260/unit/MessageInflowTransactionUnitTestCase.java
Log:
JBPAPP-2260: increased timeout to 30 seconds
Modified: branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/ejb3/jbpapp2260/unit/MessageInflowTransactionUnitTestCase.java
===================================================================
--- branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/ejb3/jbpapp2260/unit/MessageInflowTransactionUnitTestCase.java 2009-07-21 17:15:55 UTC (rev 91503)
+++ branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/ejb3/jbpapp2260/unit/MessageInflowTransactionUnitTestCase.java 2009-07-21 17:45:37 UTC (rev 91504)
@@ -52,6 +52,11 @@
private static final String QUEUE_NAME = "jbpapp2260";
+ /**
+ * Overall timeout to wait for anything to happen in milliseconds.
+ */
+ private static final long TIMEOUT = 30000;
+
public MessageInflowTransactionUnitTestCase(String name)
{
super(name);
@@ -83,7 +88,7 @@
sender.send(msg);
- Message reply = receiver.receive(5000);
+ Message reply = receiver.receive(TIMEOUT);
assertNotNull(reply);
Serializable obj = ((ObjectMessage) reply).getObject();
@@ -149,7 +154,7 @@
for(int i = 0; i < 100; i++)
{
- Message reply = receiver.receive(5000);
+ Message reply = receiver.receive(TIMEOUT);
assertNotNull(reply);
Serializable obj = ((ObjectMessage) reply).getObject();
More information about the jboss-cvs-commits
mailing list