diff --git a/apps/emqx_stomp/test/emqx_stomp_heartbeat_SUITE.erl b/apps/emqx_stomp/test/emqx_stomp_heartbeat_SUITE.erl index 0d01bfcd4..b3ea25aa1 100644 --- a/apps/emqx_stomp/test/emqx_stomp_heartbeat_SUITE.erl +++ b/apps/emqx_stomp/test/emqx_stomp_heartbeat_SUITE.erl @@ -51,3 +51,9 @@ t_info(_) -> HrtBt = emqx_stomp_heartbeat:init({100, 100}), #{incoming := _, outgoing := _} = emqx_stomp_heartbeat:info(HrtBt). + +t_interval(_) -> + HrtBt = emqx_stomp_heartbeat:init({1, 0}), + 1 = emqx_stomp_heartbeat:interval(incoming, HrtBt), + undefined = emqx_stomp_heartbeat:interval(outgoing, HrtBt). +