fix: keepalive ct failed
This commit is contained in:
parent
8be2aaf72c
commit
fdff3c5a53
|
@ -175,8 +175,7 @@ t_keepalive(_Config) ->
|
||||||
{ok, Ok} = emqx_mgmt_api_test_util:request_api(put, Path, Query, AuthHeader, <<"">>),
|
{ok, Ok} = emqx_mgmt_api_test_util:request_api(put, Path, Query, AuthHeader, <<"">>),
|
||||||
?assertEqual("", Ok),
|
?assertEqual("", Ok),
|
||||||
[Pid] = emqx_cm:lookup_channels(list_to_binary(ClientId)),
|
[Pid] = emqx_cm:lookup_channels(list_to_binary(ClientId)),
|
||||||
State = sys:get_state(Pid),
|
#{conninfo := #{keepalive := Keepalive}} = emqx_connection:info(Pid),
|
||||||
ct:pal("~p~n", [State]),
|
?assertEqual(11, Keepalive),
|
||||||
?assertEqual(11000, element(2, element(5, element(9, State)))),
|
|
||||||
emqtt:disconnect(C1),
|
emqtt:disconnect(C1),
|
||||||
ok.
|
ok.
|
||||||
|
|
Loading…
Reference in New Issue