Merge pull request #7968 from HJianBo/fix_gw_flaky_tests

test(gw): ensure coap client kicked
This commit is contained in:
JianBo He 2022-05-17 09:04:51 +08:00 committed by GitHub
commit 636626f65f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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