Skip to content

Commit 0cdc91e

Browse files
committed
test
1 parent 3f8d78e commit 0cdc91e

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

deps/rabbit/test/clustering_recovery_SUITE.erl

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -803,18 +803,11 @@ temporary_queue_after_partition_recovery_2(Config, QueueDeclare) ->
803803
consume(10),
804804

805805
%% Close the consuming client to trigger the queue deletion during the
806-
%% network partition.
806+
%% network partition. Because of the network partition, the queue process
807+
%% exits but it couldn't delete the queue record.
807808
_ = rabbit_ct_client_helpers:close_connection_and_channel(
808809
Conn, Ch),
809810

810-
%% We resolve the network partition.
811-
lists:foreach(
812-
fun(Node) ->
813-
rabbit_ct_broker_helpers:allow_traffic_between(
814-
Node2, Node)
815-
end, Majority),
816-
clustering_utils:assert_cluster_status({Nodes, Nodes}, Nodes),
817-
818811
receive
819812
{'DOWN', CMRef, _, _, Reason1} ->
820813
ct:pal("Connection ~p exited: ~p", [Conn, Reason1]),
@@ -832,6 +825,14 @@ temporary_queue_after_partition_recovery_2(Config, QueueDeclare) ->
832825
ct:fail("Queue ~p still running", [QPid])
833826
end,
834827

828+
%% We resolve the network partition.
829+
lists:foreach(
830+
fun(Node) ->
831+
rabbit_ct_broker_helpers:allow_traffic_between(
832+
Node2, Node)
833+
end, Majority),
834+
clustering_utils:assert_cluster_status({Nodes, Nodes}, Nodes),
835+
835836
%% The queue was also deleted from the metadata store on all
836837
%% nodes.
837838
lists:foreach(

0 commit comments

Comments
 (0)