Tightening up stats and also counting primary/rtx/padding separately (#247)

* Tightening up stats and also counting primary/rtx/padding separately

* Fix tests

* annotate type stored in atomic.Value
This commit is contained in:
Raja Subramanian
2021-12-10 19:30:27 +05:30
committed by GitHub
parent bda2e9cc59
commit 8c774f144e
3 changed files with 108 additions and 30 deletions
+4 -2
View File
@@ -680,7 +680,8 @@ func TestForwarderGetTranslationParamsAudio(t *testing.T) {
extPkt, err = testutils.GetTestExtPacket(params)
expectedTP = TranslationParams{
shouldDrop: true,
shouldDrop: true,
isDroppingRelevant: true,
}
actualTP, err = f.GetTranslationParams(extPkt, 0)
require.NoError(t, err)
@@ -899,7 +900,8 @@ func TestForwarderGetTranslationParamsVideo(t *testing.T) {
}
extPkt, _ = testutils.GetTestExtPacketVP8(params, vp8)
expectedTP = TranslationParams{
shouldDrop: true,
shouldDrop: true,
isDroppingRelevant: true,
}
actualTP, err = f.GetTranslationParams(extPkt, 0)
require.NoError(t, err)