From 6a8423bfe62c30929635a71468d8d6ca4e5af4c2 Mon Sep 17 00:00:00 2001 From: Saxon Date: Sun, 10 Mar 2019 15:56:56 +1030 Subject: [PATCH] revid: fixed mtsSender_test.go --- revid/mtsSender_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/revid/mtsSender_test.go b/revid/mtsSender_test.go index 3eb65dae..e1d36806 100644 --- a/revid/mtsSender_test.go +++ b/revid/mtsSender_test.go @@ -135,6 +135,8 @@ func TestSegment(t *testing.T) { t.Fatalf("Unexpected err: %v\n", err) } loadSender.release() + next.Close() + next = nil } } @@ -219,6 +221,8 @@ func TestSendFailDiscontinuity(t *testing.T) { loadSender.send() loadSender.release() + next.Close() + next = nil } }