[Jboss-cvs] JBoss Messaging SVN: r1216 - trunk/tests/src/org/jboss/test/messaging/jms/server/destination
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Aug 8 15:52:17 EDT 2006
Author: timfox
Date: 2006-08-08 15:52:15 -0400 (Tue, 08 Aug 2006)
New Revision: 1216
Modified:
trunk/tests/src/org/jboss/test/messaging/jms/server/destination/QueueManagementTest.java
Log:
http://jira.jboss.com/jira/browse/JBMESSAGING-503
Modified: trunk/tests/src/org/jboss/test/messaging/jms/server/destination/QueueManagementTest.java
===================================================================
--- trunk/tests/src/org/jboss/test/messaging/jms/server/destination/QueueManagementTest.java 2006-08-08 13:14:02 UTC (rev 1215)
+++ trunk/tests/src/org/jboss/test/messaging/jms/server/destination/QueueManagementTest.java 2006-08-08 19:52:15 UTC (rev 1216)
@@ -212,6 +212,10 @@
cons.receive();
conn.close();
+ //Need to pause for a bit since the message is not necessarily removed
+ //in memory until sometime after receive has completed
+ Thread.sleep(1000);
+
// Test MessageCount again, should be 0 msg
count = (Integer)ServerManagement.getAttribute(destObjectName, "MessageCount");
assertEquals(0, count.intValue());
More information about the jboss-cvs-commits
mailing list