Explorar o código

fix: emqx_topic_metrics CT failed

Zhongwen Deng %!s(int64=3) %!d(string=hai) anos
pai
achega
618a3e0cb8

+ 3 - 0
apps/emqx_modules/test/emqx_rewrite_SUITE.erl

@@ -73,6 +73,9 @@ all() -> emqx_common_test_helpers:all(?MODULE).
 
 init_per_suite(Config) ->
     emqx_common_test_helpers:boot_modules(all),
+    ok = emqx_common_test_helpers:load_config(emqx_modules_schema, #{}, #{
+        raw_with_default => true
+    }),
     emqx_common_test_helpers:start_apps([emqx_conf, emqx_modules]),
     Config.
 

+ 1 - 1
apps/emqx_modules/test/emqx_topic_metrics_SUITE.erl

@@ -28,10 +28,10 @@ all() -> emqx_common_test_helpers:all(?MODULE).
 
 init_per_suite(Config) ->
     emqx_common_test_helpers:boot_modules(all),
-    emqx_common_test_helpers:start_apps([emqx_conf, emqx_modules]),
     ok = emqx_common_test_helpers:load_config(emqx_modules_schema, jsx:encode(?TOPIC), #{
         raw_with_default => true
     }),
+    emqx_common_test_helpers:start_apps([emqx_conf, emqx_modules]),
     Config.
 
 end_per_suite(_Config) ->