Fix test case

This commit is contained in:
zhouzb 2019-09-16 17:36:22 +08:00
parent 600cd11f1f
commit e35eaa97b3
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ t_cm(_) ->
ClientId = <<"myclient">>,
{ok, C} = emqtt:start_link([{client_id, ClientId}]),
{ok, _} = emqtt:connect(C),
ct:sleep(50),
#{client := #{client_id := ClientId}} = emqx_cm:get_chan_attrs(ClientId),
emqtt:subscribe(C, <<"mytopic">>, 0),
ct:sleep(1200),