Skip to content

Commit fe2061b

Browse files
committed
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.
1 parent 03f9d36 commit fe2061b

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

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

0 commit comments

Comments
 (0)