mirror of https://bitbucket.org/ausocean/av.git
Merged in fix-mts-sender-test (pull request #390)
revid: give ring buffer write timeout in TestMtsSenderFailedSend
This commit is contained in:
commit
9182443494
|
@ -224,7 +224,7 @@ func TestMtsSenderFailedSend(t *testing.T) {
|
||||||
// Create destination, the mtsSender and the mtsEncoder
|
// Create destination, the mtsSender and the mtsEncoder
|
||||||
const clipToFailAt = 3
|
const clipToFailAt = 3
|
||||||
dst := &destination{t: t, testFails: true, failAt: clipToFailAt, done: make(chan struct{})}
|
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 {
|
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