diff --git a/apps/emqx_coap/test/emqx_coap_SUITE.erl b/apps/emqx_coap/test/emqx_coap_SUITE.erl index ed59b309c..444bcc064 100644 --- a/apps/emqx_coap/test/emqx_coap_SUITE.erl +++ b/apps/emqx_coap/test/emqx_coap_SUITE.erl @@ -28,16 +28,16 @@ all() -> emqx_ct:all(?MODULE). init_per_suite(Config) -> - emqx_ct_helpers:start_apps([emqx_coap], fun set_sepecial_cfg/1), + emqx_ct_helpers:start_apps([emqx_coap], fun set_special_cfg/1), Config. -set_sepecial_cfg(emqx_coap) -> +set_special_cfg(emqx_coap) -> Opts = application:get_env(emqx_coap, dtls_opts,[]), Opts2 = [{keyfile, emqx_ct_helpers:deps_path(emqx, "etc/certs/key.pem")}, {certfile, emqx_ct_helpers:deps_path(emqx, "etc/certs/cert.pem")}], application:set_env(emqx_coap, dtls_opts, emqx_misc:merge_opts(Opts, Opts2)), application:set_env(emqx_coap, enable_stats, true); -set_sepecial_cfg(_) -> +set_special_cfg(_) -> ok. end_per_suite(Config) -> diff --git a/apps/emqx_coap/test/emqx_coap_pubsub_SUITE.erl b/apps/emqx_coap/test/emqx_coap_pubsub_SUITE.erl index 7f49ece7b..1aaf6cb69 100644 --- a/apps/emqx_coap/test/emqx_coap_pubsub_SUITE.erl +++ b/apps/emqx_coap/test/emqx_coap_pubsub_SUITE.erl @@ -28,12 +28,12 @@ all() -> emqx_ct:all(?MODULE). init_per_suite(Config) -> - emqx_ct_helpers:start_apps([emqx_coap], fun set_sepecial_cfg/1), + emqx_ct_helpers:start_apps([emqx_coap], fun set_special_cfg/1), Config. -set_sepecial_cfg(emqx_coap) -> +set_special_cfg(emqx_coap) -> application:set_env(emqx_coap, enable_stats, true); -set_sepecial_cfg(_) -> +set_special_cfg(_) -> ok. end_per_suite(Config) -> diff --git a/apps/emqx_exproto/test/emqx_exproto_SUITE.erl b/apps/emqx_exproto/test/emqx_exproto_SUITE.erl index f1fdfa9f8..70484c30e 100644 --- a/apps/emqx_exproto/test/emqx_exproto_SUITE.erl +++ b/apps/emqx_exproto/test/emqx_exproto_SUITE.erl @@ -55,7 +55,7 @@ metrics() -> init_per_group(GrpName, Cfg) -> put(grpname, GrpName), Svrs = emqx_exproto_echo_svr:start(), - emqx_ct_helpers:start_apps([emqx_exproto], fun set_sepecial_cfg/1), + emqx_ct_helpers:start_apps([emqx_exproto], fun set_special_cfg/1), emqx_logger:set_log_level(debug), [{servers, Svrs}, {listener_type, GrpName} | Cfg]. @@ -63,7 +63,7 @@ end_per_group(_, Cfg) -> emqx_ct_helpers:stop_apps([emqx_exproto]), emqx_exproto_echo_svr:stop(proplists:get_value(servers, Cfg)). -set_sepecial_cfg(emqx_exproto) -> +set_special_cfg(emqx_exproto) -> LisType = get(grpname), Listeners = application:get_env(emqx_exproto, listeners, []), SockOpts = socketopts(LisType), @@ -77,7 +77,7 @@ set_sepecial_cfg(emqx_exproto) -> NListeners = [{Proto, LisType, LisOn, UpgradeOpts(Opts)} || {Proto, _Type, LisOn, Opts} <- Listeners], application:set_env(emqx_exproto, listeners, NListeners); -set_sepecial_cfg(emqx) -> +set_special_cfg(emqx) -> application:set_env(emqx, allow_anonymous, true), application:set_env(emqx, enable_acl_cache, false), ok. diff --git a/lib-ce/emqx_modules/test/emqx_modules_SUITE.erl b/lib-ce/emqx_modules/test/emqx_modules_SUITE.erl index 48bd0bd5b..dc76e8eb7 100644 --- a/lib-ce/emqx_modules/test/emqx_modules_SUITE.erl +++ b/lib-ce/emqx_modules/test/emqx_modules_SUITE.erl @@ -32,11 +32,11 @@ all() -> emqx_ct:all(?MODULE). init_per_suite(Config) -> - emqx_ct_helpers:start_apps([emqx_management, emqx_modules], fun set_sepecial_cfg/1), + emqx_ct_helpers:start_apps([emqx_management, emqx_modules], fun set_special_cfg/1), emqx_ct_http:create_default_app(), Config. -set_sepecial_cfg(_) -> +set_special_cfg(_) -> application:set_env(emqx, modules_loaded_file, emqx_ct_helpers:deps_path(emqx, "test/emqx_SUITE_data/loaded_modules")), ok. diff --git a/test/emqx_plugins_SUITE.erl b/test/emqx_plugins_SUITE.erl index f62fea5e7..6d8847f43 100644 --- a/test/emqx_plugins_SUITE.erl +++ b/test/emqx_plugins_SUITE.erl @@ -37,11 +37,11 @@ init_per_suite(Config) -> put(loaded_file, filename:join([DataPath, "loaded_plugins"])), emqx_ct_helpers:boot_modules([]), - emqx_ct_helpers:start_apps([], fun(_) -> set_sepecial_cfg(DataPath) end), + emqx_ct_helpers:start_apps([], fun(_) -> set_special_cfg(DataPath) end), Config. -set_sepecial_cfg(PluginsDir) -> +set_special_cfg(PluginsDir) -> application:set_env(emqx, plugins_loaded_file, get(loaded_file)), application:set_env(emqx, expand_plugins_dir, PluginsDir), ok.