fix(emqx_authz_file_SUITE): fix config_update_crashed error

This commit is contained in:
EMQ-YangM 2022-03-09 16:35:30 +08:00
parent 583624fb8d
commit b7674fd19f
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,7 @@ init_per_suite(Config) ->
end_per_suite(_Config) -> end_per_suite(_Config) ->
ok = emqx_authz_test_lib:restore_authorizers(), ok = emqx_authz_test_lib:restore_authorizers(),
ok = stop_apps([emqx_resource, emqx_connector]),
ok = emqx_common_test_helpers:stop_apps([emqx_authz]). ok = emqx_common_test_helpers:stop_apps([emqx_authz]).
init_per_testcase(_TestCase, Config) -> init_per_testcase(_TestCase, Config) ->
@ -128,3 +129,6 @@ setup_config(SpecialParams) ->
emqx_authz_test_lib:setup_config( emqx_authz_test_lib:setup_config(
raw_file_authz_config(), raw_file_authz_config(),
SpecialParams). SpecialParams).
stop_apps(Apps) ->
lists:foreach(fun application:stop/1, Apps).