test: fix inter test suite problem
This commit is contained in:
parent
9628a00a82
commit
958748cf7f
|
@ -5,6 +5,14 @@
|
||||||
{emqx_utils, {path, "../emqx_utils"}}
|
{emqx_utils, {path, "../emqx_utils"}}
|
||||||
]}.
|
]}.
|
||||||
|
|
||||||
|
{profiles, [
|
||||||
|
{test, [
|
||||||
|
{deps, [
|
||||||
|
{emqx_bridge_http, {path, "../emqx_bridge_http"}}
|
||||||
|
]}
|
||||||
|
]}
|
||||||
|
]}.
|
||||||
|
|
||||||
{erl_opts, [
|
{erl_opts, [
|
||||||
warn_unused_vars,
|
warn_unused_vars,
|
||||||
warn_shadow_vars,
|
warn_shadow_vars,
|
||||||
|
|
|
@ -30,15 +30,20 @@ all() ->
|
||||||
|
|
||||||
init_per_suite(Config) ->
|
init_per_suite(Config) ->
|
||||||
application:load(emqx_conf),
|
application:load(emqx_conf),
|
||||||
|
AppsToStart = [
|
||||||
|
emqx,
|
||||||
|
emqx_conf,
|
||||||
|
emqx_connector,
|
||||||
|
emqx_bridge,
|
||||||
|
emqx_bridge_http,
|
||||||
|
emqx_rule_engine
|
||||||
|
],
|
||||||
|
%% 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
|
||||||
|
%% fail as it seems like the connector silently refuses to start.
|
||||||
|
ok = emqx_cth_suite:stop(AppsToStart),
|
||||||
Apps = emqx_cth_suite:start(
|
Apps = emqx_cth_suite:start(
|
||||||
[
|
AppsToStart,
|
||||||
emqx,
|
|
||||||
emqx_conf,
|
|
||||||
emqx_connector,
|
|
||||||
emqx_bridge_http,
|
|
||||||
emqx_bridge,
|
|
||||||
emqx_rule_engine
|
|
||||||
],
|
|
||||||
#{work_dir => emqx_cth_suite:work_dir(Config)}
|
#{work_dir => emqx_cth_suite:work_dir(Config)}
|
||||||
),
|
),
|
||||||
emqx_mgmt_api_test_util:init_suite(),
|
emqx_mgmt_api_test_util:init_suite(),
|
||||||
|
|
Loading…
Reference in New Issue