NACKs with min/max intervals and exponential backoff retries (#425)

* NACKs with min/max intervals and exponential backoff retries

* simplify
This commit is contained in:
Raja Subramanian
2022-02-09 19:00:03 +05:30
committed by GitHub
parent f4f9df375f
commit aff25afb70
3 changed files with 94 additions and 28 deletions
+2
View File
@@ -2,6 +2,7 @@ package buffer
import (
"testing"
"time"
"github.com/pion/rtcp"
"github.com/stretchr/testify/require"
@@ -73,6 +74,7 @@ func Test_nackQueue_pairs(t *testing.T) {
for _, sn := range tt.args {
n.Push(sn)
}
time.Sleep(100 * time.Millisecond)
got, numSeqNumsNacked := n.Pairs()
require.EqualValues(t, tt.want.pairs, got)
require.Equal(t, tt.want.numSeqNumsNacked, numSeqNumsNacked)