diff options
| author | kjnilsson <knilsson@pivotal.io> | 2019-12-12 15:17:18 +0000 |
|---|---|---|
| committer | kjnilsson <knilsson@pivotal.io> | 2019-12-12 15:17:18 +0000 |
| commit | bdede1ae94a28a2855bb1701872d2c7a56dcc6d3 (patch) | |
| tree | 9227a37c823501db3d636cd284ba0fccf2ce69bd /test | |
| parent | 2962cad98247c9fdd11315742293a44eece7e598 (diff) | |
| download | rabbitmq-server-git-bdede1ae94a28a2855bb1701872d2c7a56dcc6d3.tar.gz | |
Ensure list_local_quorum_queues works
on both follower and leader nodes.
Diffstat (limited to 'test')
| -rw-r--r-- | test/quorum_queue_SUITE.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/quorum_queue_SUITE.erl b/test/quorum_queue_SUITE.erl index eff5e7c5ce..808d4470aa 100644 --- a/test/quorum_queue_SUITE.erl +++ b/test/quorum_queue_SUITE.erl @@ -1395,14 +1395,16 @@ delete_member_not_a_member(Config) -> %% their quorum. See rabbitmq/rabbitmq-cli#389 for background. node_removal_is_quorum_critical(Config) -> - [Server | _] = rabbit_ct_broker_helpers:get_node_configs(Config, nodename), + [Server | _] = Servers = rabbit_ct_broker_helpers:get_node_configs(Config, nodename), Ch = rabbit_ct_client_helpers:open_channel(Config, Server), QName = ?config(queue_name, Config), ?assertEqual({'queue.declare_ok', QName, 0, 0}, declare(Ch, QName, [{<<"x-queue-type">>, longstr, <<"quorum">>}])), timer:sleep(100), - Qs = rpc:call(Server, rabbit_quorum_queue, list_with_minimum_quorum, []), - ?assertEqual([QName], queue_names(Qs)). + [begin + Qs = rpc:call(S, rabbit_quorum_queue, list_with_minimum_quorum, []), + ?assertEqual([QName], queue_names(Qs)) + end || S <- Servers]. node_removal_is_not_quorum_critical(Config) -> [Server | _] = rabbit_ct_broker_helpers:get_node_configs(Config, nodename), |
