From 84e32b01100854bc5022e321c57a031f8d49d0d0 Mon Sep 17 00:00:00 2001 From: Saxon Date: Fri, 27 Mar 2020 23:38:03 +1030 Subject: [PATCH] revid: give ring buffer write timeout in TestMtsSenderFailedSend --- revid/senders_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/revid/senders_test.go b/revid/senders_test.go index 8105b818..951276ee 100644 --- a/revid/senders_test.go +++ b/revid/senders_test.go @@ -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) }