Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 825FD200CD1 for ; Wed, 26 Jul 2017 13:09:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 80F171682C7; Wed, 26 Jul 2017 11:09:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C62721682BB for ; Wed, 26 Jul 2017 13:09:40 +0200 (CEST) Received: (qmail 2467 invoked by uid 500); 26 Jul 2017 11:09:40 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 2458 invoked by uid 99); 26 Jul 2017 11:09:39 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2017 11:09:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D8103E024D; Wed, 26 Jul 2017 11:09:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: gtully@apache.org To: commits@activemq.apache.org Message-Id: <85a6c3fd6abd483ca8b499eef5a582a9@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: activemq git commit: [AMQ-6778] - fix test regression that needs to account for presence of correct advisory dests Date: Wed, 26 Jul 2017 11:09:39 +0000 (UTC) archived-at: Wed, 26 Jul 2017 11:09:41 -0000 Repository: activemq Updated Branches: refs/heads/master ddfa96028 -> 206f77ada [AMQ-6778] - fix test regression that needs to account for presence of correct advisory dests Project: http://git-wip-us.apache.org/repos/asf/activemq/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/206f77ad Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/206f77ad Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/206f77ad Branch: refs/heads/master Commit: 206f77adac24414751509195fd3b985d976573fd Parents: ddfa960 Author: gtully Authored: Wed Jul 26 11:58:04 2017 +0100 Committer: gtully Committed: Wed Jul 26 11:58:04 2017 +0100 ---------------------------------------------------------------------- .../activemq/security/SimpleAuthenticationPluginTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq/blob/206f77ad/activemq-unit-tests/src/test/java/org/apache/activemq/security/SimpleAuthenticationPluginTest.java ---------------------------------------------------------------------- diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/security/SimpleAuthenticationPluginTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/security/SimpleAuthenticationPluginTest.java index 1a154b2..78e6f60 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/security/SimpleAuthenticationPluginTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/security/SimpleAuthenticationPluginTest.java @@ -17,6 +17,7 @@ package org.apache.activemq.security; import java.net.URI; +import java.util.Arrays; import javax.jms.Connection; import javax.jms.JMSException; @@ -126,6 +127,7 @@ public class SimpleAuthenticationPluginTest extends SecurityTestSupport { Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); conn.start(); + LOG.info("dest list at start:" + Arrays.asList(broker.getRegionBroker().getDestinations())); final int numDests = broker.getRegionBroker().getDestinations().length; for (int i=0; i<10; i++) { MessageProducer p = sess.createProducer(new ActiveMQQueue("USERS.PURGE." + i)); @@ -135,8 +137,9 @@ public class SimpleAuthenticationPluginTest extends SecurityTestSupport { assertTrue("dests are purged", Wait.waitFor(new Wait.Condition() { @Override public boolean isSatisified() throws Exception { + LOG.info("dest list:" + Arrays.asList(broker.getRegionBroker().getDestinations())); LOG.info("dests, orig: " + numDests + ", now: "+ broker.getRegionBroker().getDestinations().length); - return (numDests + 1) == broker.getRegionBroker().getDestinations().length; + return numDests == broker.getRegionBroker().getDestinations().length; } }));