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.
This commit is contained in:
jbertram 2015-03-04 13:11:00 -06:00
parent 9a88941a51
commit 080c1dd058

View File

@ -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);