Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit d735a46

Browse files
committed
Start rabbit application as temporary in tests
Transient application will take down the node, which will break the common_test output
1 parent d063d3b commit d735a46

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/app_utils.erl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,15 @@ manage_applications(Iterate, Do, Undo, SkipError, ErrorHandler, Apps) ->
124124
end, [], Apps),
125125
ok.
126126

127+
-ifdef(TEST).
128+
-define(APP_MODE, transient).
129+
-else.
130+
-define(APP_MODE, temporary).
131+
-endif.
132+
127133
start(rabbit) ->
128134
%% Stops the Erlang VM when the rabbit application stops abnormally
129135
%% i.e. message store reaches its restart limit
130-
application:start(rabbit, transient);
136+
application:start(rabbit, ?APP_MODE);
131137
start(App) ->
132138
application:start(App).

0 commit comments

Comments
 (0)