Explorar o código

chore: fix failed tests

JianBo He hai 1 ano
pai
achega
920e039487
Modificáronse 1 ficheiros con 7 adicións e 5 borrados
  1. 7 5
      apps/emqx/test/emqx_peersni_SUITE.erl

+ 7 - 5
apps/emqx/test/emqx_peersni_SUITE.erl

@@ -50,12 +50,14 @@ groups() ->
     ].
 
 init_per_suite(Config) ->
-    emqx_common_test_helpers:start_apps([]),
-    Config.
+    Apps = emqx_cth_suite:start(
+        [{emqx, #{}}],
+        #{work_dir => emqx_cth_suite:work_dir(Config)}
+    ),
+    [{apps, Apps} | Config].
 
-end_per_suite(_) ->
-    emqx_common_test_helpers:stop_apps([]),
-    ok.
+end_per_suite(Config) ->
+    emqx_cth_suite:stop(proplists:get_value(apps, Config)).
 
 init_per_group(tcp_ppv2, Config) ->
     ClientFn = emqx_cth_listener:reload_listener_with_ppv2(