test(gw): more robust testing
This commit is contained in:
parent
287859fe36
commit
bc3f3b4c55
|
@ -407,6 +407,7 @@ t_rest_clienit_info(_) ->
|
||||||
|
|
||||||
%% kickout
|
%% kickout
|
||||||
{204, _} = request(delete, ClientPath),
|
{204, _} = request(delete, ClientPath),
|
||||||
|
ignored = gen_server:call(?CM, ignore, infinity). % sync
|
||||||
ok = emqx_pool:flush_async_tasks(),
|
ok = emqx_pool:flush_async_tasks(),
|
||||||
{200, Clients2} = request(get, "/gateway/stomp/clients"),
|
{200, Clients2} = request(get, "/gateway/stomp/clients"),
|
||||||
?assertEqual(0, length(maps:get(data, Clients2)))
|
?assertEqual(0, length(maps:get(data, Clients2)))
|
||||||
|
|
Loading…
Reference in New Issue