mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
rename OnPacketLost2 into OnPacketsLost (#736)
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user