test: add necessary application to test suites

This commit is contained in:
Kjell Winblad 2024-04-18 17:39:52 +02:00
parent 285bfa9367
commit 09b414f368
2 changed files with 4 additions and 3 deletions

View File

@ -36,7 +36,8 @@ init_per_suite(Config) ->
emqx_connector,
emqx_bridge,
emqx_bridge_http,
emqx_rule_engine
emqx_rule_engine,
emqx_modules
],
%% I don't know why we need to stop the apps and then start them but if we
%% don't do this and other suites run before this suite the test cases will

View File

@ -30,11 +30,11 @@ all() ->
init_per_suite(Config) ->
application:load(emqx_conf),
ok = emqx_common_test_helpers:load_config(emqx_rule_engine_schema, ?CONF_DEFAULT),
ok = emqx_common_test_helpers:start_apps([emqx_conf, emqx_rule_engine]),
ok = emqx_common_test_helpers:start_apps([emqx_conf, emqx_rule_engine, emqx_modules]),
Config.
end_per_suite(_Config) ->
emqx_common_test_helpers:stop_apps([emqx_conf, emqx_rule_engine]),
emqx_common_test_helpers:stop_apps([emqx_conf, emqx_rule_engine, emqx_modules]),
ok.
t_ctx_pub(_) ->