qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kw...@apache.org
Subject svn commit: r1783197 - /qpid/java/trunk/systests/src/test/java/org/apache/qpid/test/client/ProducerFlowControlTest.java
Date Thu, 16 Feb 2017 12:38:51 GMT
Author: kwall
Date: Thu Feb 16 12:38:51 2017
New Revision: 1783197

URL: http://svn.apache.org/viewvc?rev=1783197&view=rev
Log:
NO-JIRA: [Java System Tests] Correct sporadically failing test ProducerFlowControlTest

Modified:
    qpid/java/trunk/systests/src/test/java/org/apache/qpid/test/client/ProducerFlowControlTest.java

Modified: qpid/java/trunk/systests/src/test/java/org/apache/qpid/test/client/ProducerFlowControlTest.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/systests/src/test/java/org/apache/qpid/test/client/ProducerFlowControlTest.java?rev=1783197&r1=1783196&r2=1783197&view=diff
==============================================================================
--- qpid/java/trunk/systests/src/test/java/org/apache/qpid/test/client/ProducerFlowControlTest.java
(original)
+++ qpid/java/trunk/systests/src/test/java/org/apache/qpid/test/client/ProducerFlowControlTest.java
Thu Feb 16 12:38:51 2017
@@ -77,7 +77,8 @@ public class ProducerFlowControlTest ext
     {
         _producer.send(_message);
         _restTestHelper.waitForAttributeChanged(_queueUrl, org.apache.qpid.server.model.Queue.QUEUE_FLOW_STOPPED,
Boolean.TRUE);
-        ((AMQSession<?, ?>) _producerSession).sync();  // Ensure that the client has
processed the flow control.
+        // Ensure that the client has processed the incoming flow/messagestop
+        _producerConnection.createSession(false, Session.AUTO_ACKNOWLEDGE).close();
         try
         {
             _producer.send(_message);



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


Mime
View raw message