Browse Source

Merge pull request #10883 from thalesmg/test-flakiness-20230530-b

test(exclusive_sub): fix test flakiness
Thales Macedo Garitezi 2 năm trước cách đây
mục cha
commit
c43e5b8406

+ 0 - 3
apps/emqx/test/emqx_access_control_SUITE.erl

@@ -120,6 +120,3 @@ clientinfo(InitProps) ->
         },
         },
         InitProps
         InitProps
     ).
     ).
-
-toggle_auth(Bool) when is_boolean(Bool) ->
-    emqx_config:put_zone_conf(default, [auth, enable], Bool).

+ 1 - 0
apps/emqx/test/emqx_exclusive_sub_SUITE.erl

@@ -34,6 +34,7 @@
 all() -> emqx_common_test_helpers:all(?MODULE).
 all() -> emqx_common_test_helpers:all(?MODULE).
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    emqx_common_test_helpers:boot_modules(all),
     emqx_common_test_helpers:start_apps([]),
     emqx_common_test_helpers:start_apps([]),
     ok = ekka:start(),
     ok = ekka:start(),
     OldConf = emqx:get_config([zones], #{}),
     OldConf = emqx:get_config([zones], #{}),