test(stomp): cover the emqx_stom_heartbeat:interval/2
This commit is contained in:
parent
713b4c7804
commit
2b1429fe03
|
@ -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).
|
||||
|
||||
|
|
Loading…
Reference in New Issue