Skip to content

Commit 05b701b

Browse files
committed
rabbit tests: Don't fail if rabbit already loaded
Seems that this can happen if multiple test suites are running one after the other and a previous test suite did not clean up perfectly.
1 parent a17fb13 commit 05b701b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

deps/rabbit/test/unit_config_value_encryption_SUITE.erl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ decrypt_config(_Config) ->
6868
ok.
6969

7070
do_decrypt_config(Algo = {C, H, I, P}) ->
71-
ok = application:load(rabbit),
71+
case application:load(rabbit) of
72+
ok -> ok;
73+
{error, {already_loaded, rabbit}} -> ok
74+
end,
7275
RabbitConfig = application:get_all_env(rabbit),
7376
%% Encrypt a few values in configuration.
7477
%% Common cases.

0 commit comments

Comments
 (0)