Skip to content

Commit 0f1b876

Browse files
MarcialRosalesmichaelklishin
authored andcommitted
Fix issue
1 parent 0c8dadd commit 0f1b876

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

deps/rabbitmq_auth_backend_oauth2/test/unit_SUITE.erl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,10 @@ groups() ->
7373
init_per_suite(Config) ->
7474
application:load(rabbitmq_auth_backend_oauth2),
7575
Env = application:get_all_env(rabbitmq_auth_backend_oauth2),
76-
Config1 = rabbit_ct_helpers:set_config(Config, {env, Env}),
77-
rabbit_ct_helpers:run_setup_steps(Config1, []).
76+
lists:foreach(fun({K, _V}) -> unset_env(K) end, Env),
77+
rabbit_ct_helpers:run_setup_steps(Config, []).
7878

7979
end_per_suite(Config) ->
80-
Env = ?config(env, Config),
81-
lists:foreach(
82-
fun({K, V}) ->
83-
set_env(K, V)
84-
end,
85-
Env),
8680
rabbit_ct_helpers:run_teardown_steps(Config).
8781

8882
init_per_group(with_rabbitmq_node, Config) ->

0 commit comments

Comments
 (0)