[jboss-cvs] JBossAS SVN: r57344 - trunk/ejb3/src/test/org/jboss/ejb3/test/strictpool/unit

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Oct 2 04:12:47 EDT 2006


Author: wolfc
Date: 2006-10-02 04:12:43 -0400 (Mon, 02 Oct 2006)
New Revision: 57344

Modified:
   trunk/ejb3/src/test/org/jboss/ejb3/test/strictpool/unit/StrictPoolUnitTestCase.java
Log:
Timeout on second message

Modified: trunk/ejb3/src/test/org/jboss/ejb3/test/strictpool/unit/StrictPoolUnitTestCase.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/strictpool/unit/StrictPoolUnitTestCase.java	2006-10-02 02:35:50 UTC (rev 57343)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/strictpool/unit/StrictPoolUnitTestCase.java	2006-10-02 08:12:43 UTC (rev 57344)
@@ -122,13 +122,14 @@
       TextMessage msg = session.createTextMessage("hello world");
       msg.setIntProperty("JMS_JBOSS_REDELIVERY_LIMIT", 20);
       sender.send(msg);
-      TextMessage msg2 = session.createTextMessage("hello world");
+      // the second message will timeout 
+      TextMessage msg2 = session.createTextMessage("hello world 2");
       msg2.setIntProperty("JMS_JBOSS_REDELIVERY_LIMIT", 20);
       sender.send(msg2);
 
       Thread.sleep(5000);
       Counter counter = (Counter)ctx.lookup("CounterBean/remote");
-      assertEquals(2, counter.getCount());
+      assertEquals(1, counter.getCount());
 
    }
 




More information about the jboss-cvs-commits mailing list