rename OnPacketLost2 into OnPacketsLost (#736)

This commit is contained in:
Alessandro Ros
2025-03-24 18:42:48 +01:00
committed by GitHub
parent c0c275e6a6
commit 61372cfa68
9 changed files with 43 additions and 33 deletions

View File

@@ -1259,8 +1259,8 @@ func TestServerRecordDecodeErrors(t *testing.T) {
StatusCode: base.StatusOK,
}, nil
},
onPacketLost: func(ctx *ServerHandlerOnPacketLostCtx) {
require.EqualError(t, ctx.Error, "69 RTP packets lost")
onPacketsLost: func(ctx *ServerHandlerOnPacketsLostCtx) {
require.Equal(t, uint64(69), ctx.Lost)
close(errorRecv)
},
onDecodeError: func(ctx *ServerHandlerOnDecodeErrorCtx) {