diff --git a/lib-ce/emqx_dashboard/test/emqx_dashboard_SUITE.erl b/lib-ce/emqx_dashboard/test/emqx_dashboard_SUITE.erl index 556fb8371..3e70a3b6d 100644 --- a/lib-ce/emqx_dashboard/test/emqx_dashboard_SUITE.erl +++ b/lib-ce/emqx_dashboard/test/emqx_dashboard_SUITE.erl @@ -309,8 +309,16 @@ is_lib(Path) -> string:prefix(Path, code:lib_dir()) =:= nomatch. setup_node(Node, Apps) -> + LoadedPlugins = emqx_ct_helpers:deps_path( + emqx, + filename:join(["test", "emqx_SUITE_data", "loaded_plugins"])), + LoadedModules = emqx_ct_helpers:deps_path( + emqx, + filename:join(["test", "emqx_SUITE_data", "loaded_modules"])), EnvHandler = fun(emqx) -> + application:set_env(emqx, plugins_loaded_file, LoadedPlugins), + application:set_env(emqx, modules_loaded_file, LoadedModules), application:set_env(emqx, listeners, []), application:set_env(gen_rpc, port_discovery, manual), ok;