Procházet zdrojové kódy

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 před 3 roky
rodič
revize
ed0ab70aaf
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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.
     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],