mirror of https://bitbucket.org/ausocean/av.git
Merged in fix-mts-sender-disc-test (pull request #391)
revid: added ring buffer write timeout to TestMtsSenderDiscontinuity
This commit is contained in:
commit
a02db333e9
|
@ -309,7 +309,7 @@ func TestMtsSenderDiscontinuity(t *testing.T) {
|
||||||
// Create destination, the mtsSender and the mtsEncoder.
|
// Create destination, the mtsSender and the mtsEncoder.
|
||||||
const clipToDelay = 3
|
const clipToDelay = 3
|
||||||
dst := &destination{t: t, sendDelay: 10 * time.Millisecond, delayAt: clipToDelay, done: make(chan struct{})}
|
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 {
|
if err != nil {
|
||||||
t.Fatalf("could not initialise ring buffer: %v", err)
|
t.Fatalf("could not initialise ring buffer: %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue