test: add necessary application to test suites
This commit is contained in:
parent
285bfa9367
commit
09b414f368
|
@ -36,7 +36,8 @@ init_per_suite(Config) ->
|
||||||
emqx_connector,
|
emqx_connector,
|
||||||
emqx_bridge,
|
emqx_bridge,
|
||||||
emqx_bridge_http,
|
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
|
%% 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
|
%% don't do this and other suites run before this suite the test cases will
|
||||||
|
|
|
@ -30,11 +30,11 @@ all() ->
|
||||||
init_per_suite(Config) ->
|
init_per_suite(Config) ->
|
||||||
application:load(emqx_conf),
|
application:load(emqx_conf),
|
||||||
ok = emqx_common_test_helpers:load_config(emqx_rule_engine_schema, ?CONF_DEFAULT),
|
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.
|
Config.
|
||||||
|
|
||||||
end_per_suite(_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.
|
ok.
|
||||||
|
|
||||||
t_ctx_pub(_) ->
|
t_ctx_pub(_) ->
|
||||||
|
|
Loading…
Reference in New Issue