test: start emqx_mongodb when running the MongoDB tests
This commit is contained in:
parent
515a7d0c80
commit
6d6287ef26
|
@ -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),
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue