test(gw): ensure coap client kicked

This commit is contained in:
JianBo He 2022-05-16 21:41:11 +08:00
parent 5e35e6bcb9
commit a6c15967d2
1 changed files with 1 additions and 0 deletions

View File

@ -278,6 +278,7 @@ t_clients_api(_) ->
%% kickout %% kickout
{204, _} = {204, _} =
request(delete, "/gateway/coap/clients/client1"), request(delete, "/gateway/coap/clients/client1"),
timer:sleep(200),
{200, #{data := []}} = request(get, "/gateway/coap/clients") {200, #{data := []}} = request(get, "/gateway/coap/clients")
end, end,
with_connection(Fun). with_connection(Fun).