Zaiming (Stone) Shi 2 лет назад
Родитель
Сommit
08c1d5e5ae

+ 1 - 11
apps/emqx_conf/test/emqx_conf_schema_tests.erl

@@ -414,17 +414,7 @@ doc_gen_test() ->
         60,
         fun() ->
             Dir = "tmp",
-            ok = filelib:ensure_dir(filename:join("tmp", foo)),
-            I18nFile = filename:join([
-                "_build",
-                "test",
-                "lib",
-                "emqx_dashboard",
-                "priv",
-                "i18n.conf"
-            ]),
-            _ = emqx_conf:dump_schema(Dir, emqx_conf_schema, I18nFile),
-            ok
+            ok = emqx_conf:dump_schema(Dir, emqx_conf_schema)
         end
     }.
 

+ 0 - 5
apps/emqx_dashboard/test/emqx_dashboard_api_test_helpers.erl

@@ -64,11 +64,6 @@ set_default_config(DefaultUsername, HAProxyEnabled, Opts) ->
         i18n_lang => en
     },
     emqx_config:put([dashboard], Config),
-    I18nFile = filename:join([
-        code:priv_dir(emqx_dashboard),
-        "i18n.conf"
-    ]),
-    application:set_env(emqx_dashboard, i18n_file, I18nFile),
     ok.
 
 request(Method, Url) ->

+ 1 - 11
apps/emqx_enterprise/test/emqx_enterprise_schema_tests.erl

@@ -13,16 +13,6 @@ doc_gen_test() ->
         60,
         fun() ->
             Dir = "tmp",
-            ok = filelib:ensure_dir(filename:join("tmp", foo)),
-            I18nFile = filename:join([
-                "_build",
-                "test",
-                "lib",
-                "emqx_dashboard",
-                "priv",
-                "i18n.conf"
-            ]),
-            _ = emqx_conf:dump_schema(Dir, emqx_enterprise_schema, I18nFile),
-            ok
+            ok = emqx_conf:dump_schema(Dir, emqx_enterprise_schema)
         end
     }.