Explorar o código

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
Zaiming (Stone) Shi %!s(int64=3) %!d(string=hai) anos
pai
achega
ed0ab70aaf
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      apps/emqx_authn/test/emqx_authn_api_SUITE.erl

+ 1 - 0
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],