test(gw): more robust testing

This commit is contained in:
JianBo He 2021-10-25 10:06:00 +08:00 committed by JianBo He
parent 287859fe36
commit bc3f3b4c55
1 changed files with 1 additions and 0 deletions

View File

@ -407,6 +407,7 @@ t_rest_clienit_info(_) ->
%% kickout
{204, _} = request(delete, ClientPath),
ignored = gen_server:call(?CM, ignore, infinity). % sync
ok = emqx_pool:flush_async_tasks(),
{200, Clients2} = request(get, "/gateway/stomp/clients"),
?assertEqual(0, length(maps:get(data, Clients2)))