Explorar o código

test: ensure emqx app stoped for emqx_ctl_SUITE run

Zaiming (Stone) Shi %!s(int64=3) %!d(string=hai) anos
pai
achega
7207b2fa70

+ 2 - 0
apps/emqx/test/emqx_ctl_SUITE.erl

@@ -25,6 +25,8 @@
 all() -> emqx_common_test_helpers:all(?MODULE).
 all() -> emqx_common_test_helpers:all(?MODULE).
 
 
 init_per_suite(Config) ->
 init_per_suite(Config) ->
+    %% ensure stopped, this suite tests emqx_ctl process independently
+    application:stop(emqx),
     ok = emqx_logger:set_log_level(emergency),
     ok = emqx_logger:set_log_level(emergency),
     Config.
     Config.
 
 

+ 1 - 1
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("eunit/include/eunit.hrl").
 -include_lib("common_test/include/ct.hrl").
 -include_lib("common_test/include/ct.hrl").
 -include_lib("emqx/include/emqx_placeholder.hrl").
 -include_lib("emqx/include/emqx_placeholder.hrl").