test: start emqx_mongodb when running the MongoDB tests

This commit is contained in:
Kjell Winblad 2023-06-28 07:57:04 +02:00
parent 515a7d0c80
commit 6d6287ef26
2 changed files with 4 additions and 1 deletions

View File

@ -141,7 +141,9 @@ start_apps() ->
%% we want to make sure they are loaded before
%% ekka start in emqx_common_test_helpers:start_apps/1
emqx_common_test_helpers:render_and_load_app_config(emqx_conf),
ok = emqx_common_test_helpers:start_apps([emqx_conf, emqx_rule_engine, emqx_bridge]).
ok = emqx_common_test_helpers:start_apps([
emqx_conf, emqx_rule_engine, emqx_bridge, emqx_mongodb
]).
ensure_loaded() ->
_ = application:load(emqx_ee_bridge),

View File

@ -38,6 +38,7 @@ init_per_suite(Config) ->
ok = emqx_common_test_helpers:start_apps([emqx_conf]),
ok = emqx_connector_test_helpers:start_apps([emqx_resource]),
{ok, _} = application:ensure_all_started(emqx_connector),
{ok, _} = application:ensure_all_started(emqx_mongodb),
Config;
false ->
{skip, no_mongo}