fix(bridge): load emqx_conf in testcases

This commit is contained in:
Shawn 2021-11-02 19:36:51 +08:00
parent 339749764d
commit c4668b4047
2 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,7 @@ start_apps(Apps) ->
start_apps(Apps, Handler) when is_function(Handler) ->
%% Load all application code to beam vm first
%% Because, minirest, ekka etc.. application will scan these modules
lists:foreach(fun load/1, [emqx_conf, emqx | Apps]),
lists:foreach(fun load/1, [emqx | Apps]),
ekka:start(),
lists:foreach(fun(App) -> start_app(App, Handler) end, [emqx | Apps]).

View File

@ -40,6 +40,7 @@ init_per_suite(Config) ->
port => 18083
}]
}),
ok = application:load(emqx_conf),
ok = emqx_common_test_helpers:start_apps([emqx_bridge, emqx_dashboard]),
ok = emqx_config:init_load(emqx_bridge_schema, ?CONF_DEFAULT),
Config.