[jboss-cvs] JBoss Messaging SVN: r3492 - branches/Branch_Stable/tests/src/org/jboss/test/messaging/jms.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Dec 12 17:49:10 EST 2007


Author: timfox
Date: 2007-12-12 17:49:10 -0500 (Wed, 12 Dec 2007)
New Revision: 3492

Modified:
   branches/Branch_Stable/tests/src/org/jboss/test/messaging/jms/ConnectionFactoryTest.java
Log:
Fixed test


Modified: branches/Branch_Stable/tests/src/org/jboss/test/messaging/jms/ConnectionFactoryTest.java
===================================================================
--- branches/Branch_Stable/tests/src/org/jboss/test/messaging/jms/ConnectionFactoryTest.java	2007-12-12 22:46:18 UTC (rev 3491)
+++ branches/Branch_Stable/tests/src/org/jboss/test/messaging/jms/ConnectionFactoryTest.java	2007-12-12 22:49:10 UTC (rev 3492)
@@ -369,7 +369,7 @@
                {
                }
 
-         		if (processed == numMessages - 1)
+         		if (processed == numMessages - 2)
          		{
          			synchronized (waitLock)
          			{
@@ -400,7 +400,7 @@
                synchronized (waitLock)
                {
                	//Should really cope with spurious wakeups
-               	while (fast.processed != numMessages - 1)
+               	while (fast.processed != numMessages - 2)
                	{
                		log.info("Waiting");
                		try
@@ -444,7 +444,7 @@
          synchronized (waitLock)
          {
          	//Should really cope with spurious wakeups
-         	while (fast.processed != numMessages - 1)
+         	while (fast.processed != numMessages - 2)
          	{
          		log.info("Waiting");
          		waitLock.wait(20000);
@@ -452,7 +452,7 @@
          	}
          }
 
-         assertTrue(fast.processed == numMessages - 1);
+         assertTrue(fast.processed == numMessages - 2);
          
       }
       finally




More information about the jboss-cvs-commits mailing list