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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to