From 7207b2fa709c130320f7f25d7cbebe3c99f7ccca Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Fri, 13 May 2022 11:51:38 +0200 Subject: [PATCH] test: ensure emqx app stoped for emqx_ctl_SUITE run --- apps/emqx/test/emqx_ctl_SUITE.erl | 2 ++ apps/emqx_gateway/test/emqx_gateway_auth_ct.erl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/emqx/test/emqx_ctl_SUITE.erl b/apps/emqx/test/emqx_ctl_SUITE.erl index 9338576e4..d71e5f700 100644 --- a/apps/emqx/test/emqx_ctl_SUITE.erl +++ b/apps/emqx/test/emqx_ctl_SUITE.erl @@ -25,6 +25,8 @@ all() -> emqx_common_test_helpers:all(?MODULE). init_per_suite(Config) -> + %% ensure stopped, this suite tests emqx_ctl process independently + application:stop(emqx), ok = emqx_logger:set_log_level(emergency), Config. diff --git a/apps/emqx_gateway/test/emqx_gateway_auth_ct.erl b/apps/emqx_gateway/test/emqx_gateway_auth_ct.erl index 68499595f..7fec71ae3 100644 --- a/apps/emqx_gateway/test/emqx_gateway_auth_ct.erl +++ b/apps/emqx_gateway/test/emqx_gateway_auth_ct.erl @@ -40,7 +40,7 @@ ] ). --include("emqx_authn.hrl"). +-include_lib("emqx_authn/include/emqx_authn.hrl"). -include_lib("eunit/include/eunit.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("emqx/include/emqx_placeholder.hrl").