client, server: print number of lost packets even when using TCP (#269)

This commit is contained in:
Alessandro Ros
2023-05-02 14:30:32 +02:00
committed by GitHub
parent 3bf1725e46
commit a9a7426412
7 changed files with 140 additions and 22 deletions

View File

@@ -1218,7 +1218,7 @@ func TestServerRecordDecodeErrors(t *testing.T) {
},
onPacketLost: func(ctx *ServerHandlerOnPacketLostCtx) {
if ca.proto == "udp" && ca.name == "rtp packets lost" {
require.EqualError(t, ctx.Error, "69 RTP packet(s) lost")
require.EqualError(t, ctx.Error, "69 RTP packets lost")
}
close(errorRecv)
},