Skip to content

Commit 23884dd

Browse files
committed
Begin adding test for #1323
1 parent 0c30c18 commit 23884dd

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/partitions_SUITE.erl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ groups() ->
4343
{net_ticktime_1, [], [
4444
{cluster_size_2, [], [
4545
ctl_ticktime_sync,
46-
prompt_disconnect_detection
46+
prompt_disconnect_detection,
47+
clean_up_exclusive_queues
4748
]},
4849
{cluster_size_3, [], [
4950
autoheal,
@@ -282,6 +283,15 @@ prompt_disconnect_detection(Config) ->
282283
rabbit_ct_client_helpers:close_channel(ChB),
283284
ok.
284285

286+
clean_up_exclusive_queues(Config) ->
287+
rabbit_ct_broker_helpers:set_ha_policy(Config, 0, <<".*">>, <<"all">>),
288+
[A, B] = rabbit_ct_broker_helpers:get_node_configs(Config, nodename),
289+
ChA = rabbit_ct_client_helpers:open_channel(Config, A),
290+
amqp_channel:call(ChA, #'queue.declare'{queue = <<"excl">>,
291+
exclusive = true}),
292+
block_unblock([{A, B}]),
293+
ok.
294+
285295
ctl_ticktime_sync(Config) ->
286296
%% Server has 1s net_ticktime, make sure ctl doesn't get disconnected
287297
Cmd = ["eval", "timer:sleep(5000)."],

0 commit comments

Comments
 (0)