Explorar o código

fix(slow_subs): fix test case assert error

lafirest %!s(int64=3) %!d(string=hai) anos
pai
achega
d66098470f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/emqx_slow_subs/test/emqx_slow_subs_api_SUITE.erl

+ 1 - 1
apps/emqx_slow_subs/test/emqx_slow_subs_api_SUITE.erl

@@ -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">>,