diff options
| author | Luke Bakken <lbakken@pivotal.io> | 2017-09-22 10:09:13 -0700 |
|---|---|---|
| committer | Luke Bakken <lbakken@pivotal.io> | 2017-09-22 11:23:33 -0700 |
| commit | 6b1b2f212fa6768f712b606196002e741f56afb6 (patch) | |
| tree | 6a0d0c6aed6ff025156f9cf686e1dc30c2d8204c /test | |
| parent | 686d90c088e72ac9e2cc831c6e5bc43b028aa805 (diff) | |
| download | rabbitmq-server-git-6b1b2f212fa6768f712b606196002e741f56afb6.tar.gz | |
Be smarter about when to use all cluster nodes vs just those specified by ha-mode:nodes when picking initial queue master node
Diffstat (limited to 'test')
| -rw-r--r-- | test/queue_master_location_SUITE.erl | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/test/queue_master_location_SUITE.erl b/test/queue_master_location_SUITE.erl index 480dcd21e6..0a604617e5 100644 --- a/test/queue_master_location_SUITE.erl +++ b/test/queue_master_location_SUITE.erl @@ -186,13 +186,8 @@ declare_policy_exactly(Config) -> rabbit_queue_master_location_misc, lookup_master, [Q, ?DEFAULT_VHOST_PATH]), ?assertEqual(MNode0, MNode1), - MIdx = rabbit_ct_broker_helpers:nodename_to_index(Config, MNode1), - SIdx = rabbit_ct_broker_helpers:nodename_to_index(Config, SNode), - % Note: - % We know that the nodes are indexed in the configuration in such a way - % that higher indexes have fewer queues assigned to them - % Node0 has 15 queues, Node1 has 8 and Node2 has 1 - ?assert(MIdx > SIdx). + Node2 = rabbit_ct_broker_helpers:get_node_config(Config, 2, nodename), + ?assertEqual(MNode1, Node2). declare_config(Config) -> setup_test_environment(Config), |
