Skip to content

Commit a0b9ada

Browse files
Delete set policy at the end of the test
1 parent 2758a0a commit a0b9ada

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/plugin_SUITE.erl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ delayed_messages_count(Config) ->
229229
{messages_delayed, 6} = proplists:lookup(messages_delayed, Exchange),
230230

231231
%% Set a policy for the exchange
232-
P = make_policy_name(Config, "1"),
232+
PolicyName = make_policy_name(Config, "1"),
233233
rabbit_ct_broker_helpers:set_policy(
234-
Config, 0, P, <<"^", Ex/binary>>, <<"exchanges">>, [{<<"alternate-exchange">>,<<"altex">>}]),
234+
Config, 0, PolicyName, <<"^", Ex/binary>>, <<"exchanges">>, [{<<"alternate-exchange">>, <<"altex">>}]),
235235

236236
%% Same message count returned for modified exchange
237237
Exchanges2 = rabbit_ct_broker_helpers:rpc(Config, 0,
@@ -242,6 +242,7 @@ delayed_messages_count(Config) ->
242242

243243
consume(Chan, Q, Msgs),
244244

245+
rabbit_ct_broker_helpers:clear_policy(Config, 0, PolicyName),
245246
rabbit_ct_client_helpers:close_channel(Chan),
246247
ok.
247248

0 commit comments

Comments
 (0)