summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDiana Corbacho <diana.corbacho@erlang-solutions.com>2016-06-27 16:17:10 +0100
committerDiana Corbacho <diana.corbacho@erlang-solutions.com>2016-06-27 16:17:10 +0100
commitb6aaf53513ae5b8d909a714f53389fc5bd3445c8 (patch)
tree4aa40738d4d72ddf7b89ccf5e623ff0a74ab926e /test
parentaf644c24d5805ee432ac53e9caa2f814b8d07fac (diff)
downloadrabbitmq-server-git-b6aaf53513ae5b8d909a714f53389fc5bd3445c8.tar.gz
Fix tests cleanup
Diffstat (limited to 'test')
-rw-r--r--test/priority_queue_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/priority_queue_SUITE.erl b/test/priority_queue_SUITE.erl
index 0c2d332e70..46fafd89f7 100644
--- a/test/priority_queue_SUITE.erl
+++ b/test/priority_queue_SUITE.erl
@@ -436,7 +436,6 @@ mirror_queue_auto_ack(Config) ->
%% Retrieve slaves
SPids = slave_pids(Config, A, rabbit_misc:r(<<"/">>, queue, Q)),
[{SNode1, _SPid1}, {SNode2, SPid2}] = nodes_and_pids(SPids),
- rabbit_ct_client_helpers:close_channel(Ch),
%% Restart one of the slaves so `request_depth` is triggered
rabbit_ct_broker_helpers:restart_node(Config, SNode1),
@@ -447,8 +446,8 @@ mirror_queue_auto_ack(Config) ->
SPid2 = proplists:get_value(SNode2, Slaves),
delete(Ch, Q),
+ rabbit_ct_client_helpers:close_channel(Ch),
rabbit_ct_client_helpers:close_connection(Conn),
-
passed.
mirror_queue_sync_order(Config) ->
@@ -477,6 +476,7 @@ mirror_queue_sync_order(Config) ->
<<"msg4">>, <<"msg1">>]),
delete(Ch2, Q),
+ rabbit_ct_broker_helpers:start_node(Config, A),
rabbit_ct_client_helpers:close_connection(Conn),
rabbit_ct_client_helpers:close_connection(Conn2),
passed.