Explorar o código

test: fix emqx_ctl printout test

Zaiming Shi %!s(int64=4) %!d(string=hai) anos
pai
achega
5fe395cee5
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      apps/emqx_management/test/emqx_mgmt_SUITE.erl

+ 2 - 1
apps/emqx_management/test/emqx_mgmt_SUITE.erl

@@ -133,7 +133,8 @@ t_mgmt_cmd(_) ->
 t_status_cmd(_) ->
 t_status_cmd(_) ->
     % ct:pal("start testing status command"),
     % ct:pal("start testing status command"),
     mock_print(),
     mock_print(),
-    ?assertMatch({match, _}, re:run(emqx_mgmt_cli:status([]), "is running")),
+    %% init internal status seem to be always 'starting' when running ct tests
+    ?assertMatch({match, _}, re:run(emqx_mgmt_cli:status([]), "Node\s.*@.*\sis\sstart(ed|ing)")),
     meck:unload().
     meck:unload().
 
 
 t_broker_cmd(_) ->
 t_broker_cmd(_) ->