Merge pull request #7267 from lafirest/fix/slow_subs_api

fix(slow_subs): fix test case assert error
This commit is contained in:
lafirest 2022-03-10 17:31:40 +08:00 committed by GitHub
commit c8411e780f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ t_get_history(_) ->
{ok, Data} = request_api(get, api_path(["slow_subscriptions"]), "_page=1&_limit=10",
auth_header_()),
[First | _] = emqx_json:decode(Data, [return_maps]),
#{<<"data">> := [First | _]} = emqx_json:decode(Data, [return_maps]),
?assertMatch(#{<<"clientid">> := <<"test_5">>,
<<"topic">> := <<"topic">>,