mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-03-08 10:19:30 +00:00
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:
parent
9a88941a51
commit
080c1dd058
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user