test: fix flaky-ness of authn api tests

if api test suite runs after the JWT suite, it failes as
the config is not clean
This commit is contained in:
Zaiming (Stone) Shi 2022-05-14 12:23:33 +02:00
parent 522bd935ba
commit ed0ab70aaf
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ init_per_testcase(_, Config) ->
Config. Config.
init_per_suite(Config) -> init_per_suite(Config) ->
emqx_config:erase(?EMQX_AUTHENTICATION_CONFIG_ROOT_NAME_BINARY),
_ = application:load(emqx_conf), _ = application:load(emqx_conf),
ok = emqx_common_test_helpers:start_apps( ok = emqx_common_test_helpers:start_apps(
[emqx_authn, emqx_dashboard], [emqx_authn, emqx_dashboard],