chore: fix failed tests

This commit is contained in:
JianBo He 2024-06-28 14:07:59 +08:00
parent 3b21c41690
commit 7cf0e69fdf
1 changed files with 6 additions and 1 deletions

View File

@ -39,7 +39,8 @@
getopts/2, getopts/2,
peername/1, peername/1,
sockname/1, sockname/1,
peercert/1 peercert/1,
peersni/1
]). ]).
-include_lib("quicer/include/quicer.hrl"). -include_lib("quicer/include/quicer.hrl").
-include_lib("emqx/include/emqx_quic.hrl"). -include_lib("emqx/include/emqx_quic.hrl").
@ -106,6 +107,10 @@ peercert(_S) ->
%% @todo but unsupported by msquic %% @todo but unsupported by msquic
nossl. nossl.
peersni(_S) ->
%% @todo
undefined.
getstat({quic, Conn, _Stream, _Info}, Stats) -> getstat({quic, Conn, _Stream, _Info}, Stats) ->
case quicer:getstat(Conn, Stats) of case quicer:getstat(Conn, Stats) of
{error, _} -> {error, closed}; {error, _} -> {error, closed};