Skip to content

Commit acbc895

Browse files
dumbbellmergify[bot]
authored andcommitted
quorum_queue_member_reconciliation_SUITE: Improve reset_nodes/2
[How] The function now accepts that the node to reset is already out of the cluster. This avoids a mismatch exception for a situation that is ok. (cherry picked from commit fe2061b)
1 parent b61c598 commit acbc895

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

deps/rabbit/test/quorum_queue_member_reconciliation_SUITE.erl

+4-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ reset_nodes([], _Leader) ->
9292
ok;
9393
reset_nodes([Node| Nodes], Leader) ->
9494
ok = rabbit_control_helper:command(stop_app, Node),
95-
ok = rabbit_control_helper:command(forget_cluster_node, Leader, [atom_to_list(Node)]),
95+
case rabbit_control_helper:command(forget_cluster_node, Leader, [atom_to_list(Node)]) of
96+
ok -> ok;
97+
{error, _, <<"Error:\n{:not_a_cluster_node, ~c\"The node selected is not in the cluster.\"}">>} -> ok
98+
end,
9699
ok = rabbit_control_helper:command(reset, Node),
97100
ok = rabbit_control_helper:command(start_app, Node),
98101
reset_nodes(Nodes, Leader).

0 commit comments

Comments
 (0)