[jboss-cvs] JBossAS SVN: r57345 - branches/Branch_4_0/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:17:14 EDT 2006


Author: wolfc
Date: 2006-10-02 04:17:10 -0400 (Mon, 02 Oct 2006)
New Revision: 57345

Modified:
   branches/Branch_4_0/ejb3/src/test/org/jboss/ejb3/test/strictpool/unit/StrictPoolUnitTestCase.java
Log:
Merged trunk revision 57344

Modified: branches/Branch_4_0/ejb3/src/test/org/jboss/ejb3/test/strictpool/unit/StrictPoolUnitTestCase.java
===================================================================
--- branches/Branch_4_0/ejb3/src/test/org/jboss/ejb3/test/strictpool/unit/StrictPoolUnitTestCase.java	2006-10-02 08:12:43 UTC (rev 57344)
+++ branches/Branch_4_0/ejb3/src/test/org/jboss/ejb3/test/strictpool/unit/StrictPoolUnitTestCase.java	2006-10-02 08:17:10 UTC (rev 57345)
@@ -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