瀏覽代碼

test: ensure emqx app stoped for emqx_ctl_SUITE run

Zaiming (Stone) Shi 3 年之前
父節點
當前提交
7207b2fa70
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      apps/emqx/test/emqx_ctl_SUITE.erl
  2. 1 1
      apps/emqx_gateway/test/emqx_gateway_auth_ct.erl

+ 2 - 0
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.
 

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