@@ -118,14 +118,21 @@ auto_grow(Config) ->
118118 ? assertEqual (1 , length (Members )),
119119
120120 add_server_to_cluster (Server1 , Server0 ),
121+ clustering_utils :assert_cluster_status (
122+ {[Server0 , Server1 ], [Server0 , Server1 ], [Server0 , Server1 ]},
123+ [Server0 , Server1 ]),
121124 % % With 2 nodes in the cluster, target group size is not reached, so no
122125 % % new members should be available. We sleep a while so the periodic check
123126 % % runs
124- timer :sleep (4000 ),
125127 {ok , Members , _ } = ra :members ({queue_utils :ra_name (QQ ), Server0 }),
126128 ? assertEqual (1 , length (Members )),
127129
128130 add_server_to_cluster (Server2 , Server0 ),
131+ clustering_utils :assert_cluster_status (
132+ {[Server0 , Server1 , Server2 ],
133+ [Server0 , Server1 , Server2 ],
134+ [Server0 , Server1 , Server2 ]},
135+ [Server0 , Server1 , Server2 ]),
129136 % % With 3 nodes in the cluster, target size is met so eventually it should
130137 % % be 3 members
131138 wait_until (fun () ->
@@ -184,6 +191,11 @@ auto_shrink(Config) ->
184191 Ch = rabbit_ct_client_helpers :open_channel (Config , Server0 ),
185192 add_server_to_cluster (Server1 , Server0 ),
186193 add_server_to_cluster (Server2 , Server0 ),
194+ clustering_utils :assert_cluster_status (
195+ {[Server0 , Server1 , Server2 ],
196+ [Server0 , Server1 , Server2 ],
197+ [Server0 , Server1 , Server2 ]},
198+ [Server0 , Server1 , Server2 ]),
187199
188200 QQ = ? config (queue_name , Config ),
189201 ? assertEqual ({'queue.declare_ok' , QQ , 0 , 0 },
0 commit comments