qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oru...@apache.org
Subject [qpid-broker-j] 02/07: QPID-8318 : Fix system test
Date Tue, 18 Jun 2019 09:16:55 GMT
This is an automated email from the ASF dual-hosted git repository.

orudyy pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/qpid-broker-j.git

commit 009c394711e7a81d33ca1e497f2eef4410936161
Author: rgodfrey <rgodfrey@apache.org>
AuthorDate: Mon May 27 11:50:30 2019 +0200

    QPID-8318 : Fix system test
---
 .../src/test/java/org/apache/qpid/tests/protocol/v0_8/QueueTest.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/systests/protocol-tests-amqp-0-8/src/test/java/org/apache/qpid/tests/protocol/v0_8/QueueTest.java
b/systests/protocol-tests-amqp-0-8/src/test/java/org/apache/qpid/tests/protocol/v0_8/QueueTest.java
index 54a8f20..a5b5c26 100644
--- a/systests/protocol-tests-amqp-0-8/src/test/java/org/apache/qpid/tests/protocol/v0_8/QueueTest.java
+++ b/systests/protocol-tests-amqp-0-8/src/test/java/org/apache/qpid/tests/protocol/v0_8/QueueTest.java
@@ -430,15 +430,14 @@ public class QueueTest extends BrokerAdminUsingTestBase
                                                    .queue().purgeName(BrokerAdmin.TEST_QUEUE_NAME).purge()
                                                    .consumeResponse().getLatestResponse(QueuePurgeOkBody.class);
 
-            /* TODO purge currently always returns 0 */
-            //assertThat(response.getMessageCount(), is(equalTo(1L)));
+            assertThat(response.getMessageCount(), is(equalTo(1L)));
 
             QueueDeclareOkBody passive = interaction.queue()
                                                     .declareName(BrokerAdmin.TEST_QUEUE_NAME)
                                                     .declarePassive(true).declare()
                                                     .consumeResponse().getLatestResponse(QueueDeclareOkBody.class);
             assertThat(passive.getQueue(), is(equalTo(AMQShortString.valueOf(BrokerAdmin.TEST_QUEUE_NAME))));
-            assertThat(response.getMessageCount(), is(equalTo(0L)));
+            assertThat(passive.getMessageCount(), is(equalTo(0L)));
         }
     }
 


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


Mime
View raw message