You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by lq...@apache.org on 2015/12/18 16:18:04 UTC

svn commit: r1720808 - /qpid/java/trunk/systests/src/test/java/org/apache/qpid/server/queue/LastValueQueueTest.java

Author: lquack
Date: Fri Dec 18 15:18:04 2015
New Revision: 1720808

URL: http://svn.apache.org/viewvc?rev=1720808&view=rev
Log:
QPID-6957: [Java Tests] Fix sporadic failures of LastValueQueueTest on cpp profile.

Modified:
    qpid/java/trunk/systests/src/test/java/org/apache/qpid/server/queue/LastValueQueueTest.java

Modified: qpid/java/trunk/systests/src/test/java/org/apache/qpid/server/queue/LastValueQueueTest.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/systests/src/test/java/org/apache/qpid/server/queue/LastValueQueueTest.java?rev=1720808&r1=1720807&r2=1720808&view=diff
==============================================================================
--- qpid/java/trunk/systests/src/test/java/org/apache/qpid/server/queue/LastValueQueueTest.java (original)
+++ qpid/java/trunk/systests/src/test/java/org/apache/qpid/server/queue/LastValueQueueTest.java Fri Dec 18 15:18:04 2015
@@ -524,6 +524,10 @@ public class LastValueQueueTest extends
 
                         Message shutdownMessage = producerSession.createMessage();
                         shutdownMessage.setBooleanProperty(SHUTDOWN, true);
+                        // make sure the shutdown messages have distinct keys because the Qpid Cpp Broker will
+                        // otherwise consider them to have the same key.
+                        shutdownMessage.setStringProperty(KEY_PROPERTY, _threadName);
+
                         backgroundProducer.send(shutdownMessage);
 
                         LOGGER.info("Finished sending in background thread");



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org