test: stop testing i18n.conf

This commit is contained in:
Zaiming (Stone) Shi 2023-05-29 14:18:03 +02:00
parent d014b80834
commit 08c1d5e5ae
3 changed files with 2 additions and 27 deletions

View File

@ -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
}.

View File

@ -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) ->

View File

@ -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
}.