activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andytay...@apache.org
Subject [2/4] activemq-6 git commit: Make test more robust
Date Thu, 05 Mar 2015 09:18:18 GMT
Make test more robust

It is possible for the createHAServerLocator() method to return a
connection to the node with the non-default password causing the test
to fail.


Project: http://git-wip-us.apache.org/repos/asf/activemq-6/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-6/commit/080c1dd0
Tree: http://git-wip-us.apache.org/repos/asf/activemq-6/tree/080c1dd0
Diff: http://git-wip-us.apache.org/repos/asf/activemq-6/diff/080c1dd0

Branch: refs/heads/master
Commit: 080c1dd0589346da1b0d50449c02ba2e81ed35c7
Parents: 9a88941
Author: jbertram <jbertram@redhat.com>
Authored: Wed Mar 4 13:11:00 2015 -0600
Committer: jbertram <jbertram@redhat.com>
Committed: Wed Mar 4 14:44:24 2015 -0600

----------------------------------------------------------------------
 .../integration/cluster/topology/TopologyClusterTestBase.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-6/blob/080c1dd0/tests/integration-tests/src/test/java/org/apache/activemq/tests/integration/cluster/topology/TopologyClusterTestBase.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/tests/integration/cluster/topology/TopologyClusterTestBase.java
b/tests/integration-tests/src/test/java/org/apache/activemq/tests/integration/cluster/topology/TopologyClusterTestBase.java
index b18be94..69810f7 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/tests/integration/cluster/topology/TopologyClusterTestBase.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/tests/integration/cluster/topology/TopologyClusterTestBase.java
@@ -413,7 +413,7 @@ public abstract class TopologyClusterTestBase extends ClusterTestBase
       }
       Assert.assertFalse("cluster manager should stop", servers[4].getClusterManager().isStarted());
       final String address = "foo1235";
-      ServerLocator locator = createHAServerLocator();
+      ServerLocator locator = createNonHALocator(isNetty());
       ClientSessionFactory sf = createSessionFactory(locator);
       ClientSession session = sf.createSession(config.getClusterUser(), CLUSTER_PASSWORD,
false, true, true, false, 1);
       session.createQueue(address, address, true);


Mime
View raw message