Skip to content

Commit b6aaf53

Browse files
author
Diana Corbacho
committed
Fix tests cleanup
1 parent af644c2 commit b6aaf53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/priority_queue_SUITE.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@ mirror_queue_auto_ack(Config) ->
436436
%% Retrieve slaves
437437
SPids = slave_pids(Config, A, rabbit_misc:r(<<"/">>, queue, Q)),
438438
[{SNode1, _SPid1}, {SNode2, SPid2}] = nodes_and_pids(SPids),
439-
rabbit_ct_client_helpers:close_channel(Ch),
440439

441440
%% Restart one of the slaves so `request_depth` is triggered
442441
rabbit_ct_broker_helpers:restart_node(Config, SNode1),
@@ -447,8 +446,8 @@ mirror_queue_auto_ack(Config) ->
447446
SPid2 = proplists:get_value(SNode2, Slaves),
448447

449448
delete(Ch, Q),
449+
rabbit_ct_client_helpers:close_channel(Ch),
450450
rabbit_ct_client_helpers:close_connection(Conn),
451-
452451
passed.
453452

454453
mirror_queue_sync_order(Config) ->
@@ -477,6 +476,7 @@ mirror_queue_sync_order(Config) ->
477476
<<"msg4">>, <<"msg1">>]),
478477

479478
delete(Ch2, Q),
479+
rabbit_ct_broker_helpers:start_node(Config, A),
480480
rabbit_ct_client_helpers:close_connection(Conn),
481481
rabbit_ct_client_helpers:close_connection(Conn2),
482482
passed.

0 commit comments

Comments
 (0)