revid: added ring buffer write timeout to TestMtsSenderDiscontinuity

This commit is contained in:
Saxon 2020-03-27 23:56:36 +10:30
parent 0fa50d1a46
commit 8f5ee3184b
1 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ func TestMtsSenderFailedSend(t *testing.T) {
// Create destination, the mtsSender and the mtsEncoder
const clipToFailAt = 3
dst := &destination{t: t, testFails: true, failAt: clipToFailAt, done: make(chan struct{})}
rb, err := vring.NewBuffer(rbMaxElements, rbCapacity, 0)
rb, err := vring.NewBuffer(rbMaxElements, rbCapacity, 10*time.Millisecond)
if err != nil {
t.Fatalf("could not initialise ring buffer: %v", err)
}
@ -309,7 +309,7 @@ func TestMtsSenderDiscontinuity(t *testing.T) {
// Create destination, the mtsSender and the mtsEncoder.
const clipToDelay = 3
dst := &destination{t: t, sendDelay: 10 * time.Millisecond, delayAt: clipToDelay, done: make(chan struct{})}
rb, err := vring.NewBuffer(1, rbCapacity, 0)
rb, err := vring.NewBuffer(1, rbCapacity, 10*time.Millisecond)
if err != nil {
t.Fatalf("could not initialise ring buffer: %v", err)
}