activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r545232 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTempDestinationTest.java
Date Thu, 07 Jun 2007 16:19:10 GMT
Author: chirino
Date: Thu Jun  7 09:19:09 2007
New Revision: 545232

URL: http://svn.apache.org/viewvc?view=rev&rev=545232
Log:
JmsTempDestinationTest was intermitently failing due to a timing issue.

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTempDestinationTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTempDestinationTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTempDestinationTest.java?view=diff&rev=545232&r1=545231&r2=545232
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTempDestinationTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTempDestinationTest.java
Thu Jun  7 09:19:09 2007
@@ -217,8 +217,9 @@
      * Make sure you cannot publish to a temp destination that does not exist anymore.
      * 
      * @throws JMSException
+     * @throws InterruptedException 
      */
-    public void testPublishFailsForDestoryedTempDestination() throws JMSException {
+    public void testPublishFailsForDestoryedTempDestination() throws JMSException, InterruptedException
{
         
         Connection tempConnection = factory.createConnection();
         Session tempSession = tempConnection.createSession(false, Session.AUTO_ACKNOWLEDGE);
       
@@ -235,6 +236,7 @@
 
         // deleting the Queue will cause sends to fail
         queue.delete();
+        Thread.sleep(1000); // Wait a little bit to let the delete take effect.
         
         // This message delivery NOT should work since the temp connection is now closed.
         try {



Mime
View raw message