@@ -340,7 +340,7 @@ start_queue(Config) ->
340
340
% % Check that the application and one ra node are up
341
341
? assertMatch ({ra , _ , _ }, lists :keyfind (ra , 1 ,
342
342
rpc :call (Server , application , which_applications , []))),
343
- ? assertMatch ([_ ], rpc :call (Server , supervisor , which_children , [ra_server_sup ])),
343
+ ? assertMatch ([_ ], rpc :call (Server , supervisor , which_children , [ra_server_sup_sup ])),
344
344
345
345
% % Test declare an existing queue
346
346
? assertEqual ({'queue.declare_ok' , LQ , 0 , 0 },
@@ -356,7 +356,7 @@ start_queue(Config) ->
356
356
% % Check that the application and process are still up
357
357
? assertMatch ({ra , _ , _ }, lists :keyfind (ra , 1 ,
358
358
rpc :call (Server , application , which_applications , []))),
359
- ? assertMatch ([_ ], rpc :call (Server , supervisor , which_children , [ra_server_sup ])).
359
+ ? assertMatch ([_ ], rpc :call (Server , supervisor , which_children , [ra_server_sup_sup ])).
360
360
361
361
start_queue_concurrent (Config ) ->
362
362
Servers = rabbit_ct_broker_helpers :get_node_configs (Config , nodename ),
@@ -417,13 +417,13 @@ stop_queue(Config) ->
417
417
% % Check that the application and one ra node are up
418
418
? assertMatch ({ra , _ , _ }, lists :keyfind (ra , 1 ,
419
419
rpc :call (Server , application , which_applications , []))),
420
- ? assertMatch ([_ ], rpc :call (Server , supervisor , which_children , [ra_server_sup ])),
420
+ ? assertMatch ([_ ], rpc :call (Server , supervisor , which_children , [ra_server_sup_sup ])),
421
421
422
422
% % Delete the quorum queue
423
423
? assertMatch (# 'queue.delete_ok' {}, amqp_channel :call (Ch , # 'queue.delete' {queue = LQ })),
424
424
% % Check that the application and process are down
425
425
wait_until (fun () ->
426
- [] == rpc :call (Server , supervisor , which_children , [ra_server_sup ])
426
+ [] == rpc :call (Server , supervisor , which_children , [ra_server_sup_sup ])
427
427
end ),
428
428
? assertMatch ({ra , _ , _ }, lists :keyfind (ra , 1 ,
429
429
rpc :call (Server , application , which_applications , []))).
@@ -442,7 +442,7 @@ restart_queue(Config) ->
442
442
% % Check that the application and one ra node are up
443
443
? assertMatch ({ra , _ , _ }, lists :keyfind (ra , 1 ,
444
444
rpc :call (Server , application , which_applications , []))),
445
- ? assertMatch ([_ ], rpc :call (Server , supervisor , which_children , [ra_server_sup ])).
445
+ ? assertMatch ([_ ], rpc :call (Server , supervisor , which_children , [ra_server_sup_sup ])).
446
446
447
447
idempotent_recover (Config ) ->
448
448
Server = rabbit_ct_broker_helpers :get_node_config (Config , 0 , nodename ),
@@ -521,7 +521,7 @@ restart_all_types(Config) ->
521
521
% % Check that the application and two ra nodes are up
522
522
? assertMatch ({ra , _ , _ }, lists :keyfind (ra , 1 ,
523
523
rpc :call (Server , application , which_applications , []))),
524
- ? assertMatch ([_ ,_ ], rpc :call (Server , supervisor , which_children , [ra_server_sup ])),
524
+ ? assertMatch ([_ ,_ ], rpc :call (Server , supervisor , which_children , [ra_server_sup_sup ])),
525
525
% % Check the classic queues restarted correctly
526
526
Ch2 = rabbit_ct_client_helpers :open_channel (Config , Server ),
527
527
{# 'basic.get_ok' {}, # amqp_msg {}} =
@@ -563,7 +563,7 @@ stop_start_rabbit_app(Config) ->
563
563
% % Check that the application and two ra nodes are up
564
564
? assertMatch ({ra , _ , _ }, lists :keyfind (ra , 1 ,
565
565
rpc :call (Server , application , which_applications , []))),
566
- ? assertMatch ([_ ,_ ], rpc :call (Server , supervisor , which_children , [ra_server_sup ])),
566
+ ? assertMatch ([_ ,_ ], rpc :call (Server , supervisor , which_children , [ra_server_sup_sup ])),
567
567
% % Check the classic queues restarted correctly
568
568
Ch2 = rabbit_ct_client_helpers :open_channel (Config , Server ),
569
569
{# 'basic.get_ok' {}, # amqp_msg {}} =
@@ -1263,7 +1263,7 @@ cleanup_queue_state_on_channel_after_publish(Config) ->
1263
1263
amqp_channel :call (Ch1 , # 'queue.delete' {queue = QQ })),
1264
1264
wait_until (fun () ->
1265
1265
[] == rpc :call (Server , supervisor , which_children ,
1266
- [ra_server_sup ])
1266
+ [ra_server_sup_sup ])
1267
1267
end ),
1268
1268
% % Check that all queue states have been cleaned
1269
1269
wait_for_cleanup (Server , NCh1 , 0 ),
@@ -1300,7 +1300,7 @@ cleanup_queue_state_on_channel_after_subscribe(Config) ->
1300
1300
wait_for_cleanup (Server , NCh2 , 1 ),
1301
1301
? assertMatch (# 'queue.delete_ok' {}, amqp_channel :call (Ch1 , # 'queue.delete' {queue = QQ })),
1302
1302
wait_until (fun () ->
1303
- [] == rpc :call (Server , supervisor , which_children , [ra_server_sup ])
1303
+ [] == rpc :call (Server , supervisor , which_children , [ra_server_sup_sup ])
1304
1304
end ),
1305
1305
% % Check that all queue states have been cleaned
1306
1306
wait_for_cleanup (Server , NCh1 , 0 ),
@@ -1964,7 +1964,7 @@ delete_immediately_by_resource(Config) ->
1964
1964
1965
1965
% % Check that the application and process are down
1966
1966
wait_until (fun () ->
1967
- [] == rpc :call (Server , supervisor , which_children , [ra_server_sup ])
1967
+ [] == rpc :call (Server , supervisor , which_children , [ra_server_sup_sup ])
1968
1968
end ),
1969
1969
? assertMatch ({ra , _ , _ }, lists :keyfind (ra , 1 ,
1970
1970
rpc :call (Server , application , which_applications , []))).
@@ -2235,7 +2235,8 @@ wait_for_cleanup(Server, Channel, Number) ->
2235
2235
wait_for_cleanup (Server , Channel , Number , 60 ).
2236
2236
2237
2237
wait_for_cleanup (Server , Channel , Number , 0 ) ->
2238
- ? assertEqual (Number , length (rpc :call (Server , rabbit_channel , list_queue_states , [Channel ])));
2238
+ ? assertEqual (length (rpc :call (Server , rabbit_channel , list_queue_states , [Channel ])),
2239
+ Number );
2239
2240
wait_for_cleanup (Server , Channel , Number , N ) ->
2240
2241
case length (rpc :call (Server , rabbit_channel , list_queue_states , [Channel ])) of
2241
2242
Length when Number == Length ->
@@ -2261,7 +2262,8 @@ wait_for_messages(Servers, QName, Number, Fun, 0) ->
2261
2262
(_ ) ->
2262
2263
- 1
2263
2264
end , Msgs ),
2264
- ? assertEqual (Totals , [Number || _ <- lists :seq (1 , length (Servers ))]);
2265
+ ? assertEqual ([Number || _ <- lists :seq (1 , length (Servers ))],
2266
+ Totals );
2265
2267
wait_for_messages (Servers , QName , Number , Fun , N ) ->
2266
2268
Msgs = dirty_query (Servers , QName , Fun ),
2267
2269
case lists :all (fun (M ) when is_map (M ) ->
0 commit comments