[jboss-cvs] JBoss Messaging SVN: r2658 - branches/Branch_1_0_1_SP/tests/src/org/jboss/test/messaging/jms.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue May 8 14:30:15 EDT 2007
Author: timfox
Date: 2007-05-08 14:30:15 -0400 (Tue, 08 May 2007)
New Revision: 2658
Modified:
branches/Branch_1_0_1_SP/tests/src/org/jboss/test/messaging/jms/XATest.java
Log:
added pause so rollback can complete
Modified: branches/Branch_1_0_1_SP/tests/src/org/jboss/test/messaging/jms/XATest.java
===================================================================
--- branches/Branch_1_0_1_SP/tests/src/org/jboss/test/messaging/jms/XATest.java 2007-05-08 16:48:35 UTC (rev 2657)
+++ branches/Branch_1_0_1_SP/tests/src/org/jboss/test/messaging/jms/XATest.java 2007-05-08 18:30:15 UTC (rev 2658)
@@ -1805,6 +1805,10 @@
MessageConsumer cons = sess.createConsumer(queue);
conn2.start();
+ //Give enough time for the messages to get back in the queue (cancel is asynch)
+
+ Thread.sleep(1000);
+
//NOTE
//The order here is actually probably dependent on the transaction manager implementation
//In this case, rollback will be called on each session, but whether it is called first on res1
More information about the jboss-cvs-commits
mailing list