From cf72c04fdda04e8fd71f6588553a2c813917415c Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Thu, 30 Nov 2023 09:53:36 +0100 Subject: [PATCH] test: fix peer node stop and plugin SUITE typo --- apps/emqx/test/emqx_common_test_helpers.erl | 8 +------- apps/emqx_plugins/test/emqx_plugins_SUITE.erl | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/apps/emqx/test/emqx_common_test_helpers.erl b/apps/emqx/test/emqx_common_test_helpers.erl index 3ec47b8f2..18919103c 100644 --- a/apps/emqx/test/emqx_common_test_helpers.erl +++ b/apps/emqx/test/emqx_common_test_helpers.erl @@ -780,13 +780,7 @@ start_slave(Name, Opts) when is_map(Opts) -> %% Node stopping stop_slave(Node0) -> Node = node_name(Node0), - SlaveMod = get_peer_mod(Node), - erase_peer_mod(Node), - case SlaveMod:stop(Node) of - ok -> ok; - {ok, _} -> ok; - {error, not_started, _} -> ok - end. + emqx_cth_peer:stop(Node). %% EPMD starting start_epmd() -> diff --git a/apps/emqx_plugins/test/emqx_plugins_SUITE.erl b/apps/emqx_plugins/test/emqx_plugins_SUITE.erl index 3e9850129..b0a47a6a0 100644 --- a/apps/emqx_plugins/test/emqx_plugins_SUITE.erl +++ b/apps/emqx_plugins/test/emqx_plugins_SUITE.erl @@ -750,7 +750,7 @@ group_t_copy_plugin_to_a_new_node_single_node({init, Config}) -> | Config ]; group_t_copy_plugin_to_a_new_node_single_node({'end', Config}) -> - CopyToNode = proplists:get_value(copy_to_node, Config), + CopyToNode = proplists:get_value(copy_to_node_name, Config), ok = emqx_common_test_helpers:stop_slave(CopyToNode), ok = file:del_dir_r(proplists:get_value(to_install_dir, Config)), ok;