chore: refine case side-effect
This commit is contained in:
parent
814e01c0cb
commit
f23d2f2c92
|
@ -26,6 +26,23 @@
|
||||||
all() -> emqx_common_test_helpers:all(?MODULE).
|
all() -> emqx_common_test_helpers:all(?MODULE).
|
||||||
|
|
||||||
init_per_suite(Config) ->
|
init_per_suite(Config) ->
|
||||||
|
%% CASE-SIDE-EFFICT:
|
||||||
|
%%
|
||||||
|
%% Running-Seq:
|
||||||
|
%% emqx_authz_api_mnesia_SUITE.erl
|
||||||
|
%% emqx_gateway_api_SUITE.erl
|
||||||
|
%% emqx_machine_SUITE.erl
|
||||||
|
%%
|
||||||
|
%% Reason:
|
||||||
|
%% the `emqx_machine_boot:ensure_apps_started()` will crashed
|
||||||
|
%% on starting `emqx_authz` with dirty confs, which caused the file
|
||||||
|
%% `.._build/test/lib/emqx_conf/etc/acl.conf` could not be found
|
||||||
|
%%
|
||||||
|
%% Workaround:
|
||||||
|
%% Unload emqx_authz to avoid reboot this application
|
||||||
|
%%
|
||||||
|
application:unload(emqx_authz),
|
||||||
|
|
||||||
emqx_common_test_helpers:start_apps([]),
|
emqx_common_test_helpers:start_apps([]),
|
||||||
Config.
|
Config.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue