From ed0ab70aafaa6d104dd4ac698204748ee6a4eb62 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Sat, 14 May 2022 12:23:33 +0200 Subject: [PATCH] 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 --- apps/emqx_authn/test/emqx_authn_api_SUITE.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/emqx_authn/test/emqx_authn_api_SUITE.erl b/apps/emqx_authn/test/emqx_authn_api_SUITE.erl index 38e6c21b7..86fc1f66c 100644 --- a/apps/emqx_authn/test/emqx_authn_api_SUITE.erl +++ b/apps/emqx_authn/test/emqx_authn_api_SUITE.erl @@ -55,6 +55,7 @@ init_per_testcase(_, Config) -> Config. init_per_suite(Config) -> + emqx_config:erase(?EMQX_AUTHENTICATION_CONFIG_ROOT_NAME_BINARY), _ = application:load(emqx_conf), ok = emqx_common_test_helpers:start_apps( [emqx_authn, emqx_dashboard],