chore(mgmt): fix test case failure caused by slow kick
This commit is contained in:
parent
cff21ba16e
commit
0015520a6a
|
@ -218,6 +218,7 @@ clients(_) ->
|
|||
{ok, _} = emqtt:connect(C1),
|
||||
{ok, C2} = emqtt:start_link(#{username => Username2, clientid => ClientId2}),
|
||||
{ok, _} = emqtt:connect(C2),
|
||||
|
||||
timer:sleep(300),
|
||||
|
||||
{ok, Clients1} = request_api(get, api_path(["clients", binary_to_list(ClientId1)])
|
||||
|
@ -262,6 +263,8 @@ clients(_) ->
|
|||
{ok, Ok} = request_api(delete, api_path(["clients", binary_to_list(ClientId1)]), auth_header_()),
|
||||
?assertEqual(?SUCCESS, get(<<"code">>, Ok)),
|
||||
|
||||
timer:sleep(300),
|
||||
|
||||
{ok, NotFound0} = request_api(delete, api_path(["clients", binary_to_list(ClientId1)]), auth_header_()),
|
||||
?assertEqual(?ERROR12, get(<<"code">>, NotFound0)),
|
||||
|
||||
|
|
Loading…
Reference in New Issue