From 7070c4e4343694674e9b4942ff11f0e92c7167dd Mon Sep 17 00:00:00 2001 From: Saxon Date: Fri, 1 Mar 2019 13:35:22 +1030 Subject: [PATCH] revid: in TestSendFailDiscontinuity disconClipNo const => clipWithDiscontinuity --- revid/mtsSender_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/revid/mtsSender_test.go b/revid/mtsSender_test.go index dc2ae822..d07bdcfe 100644 --- a/revid/mtsSender_test.go +++ b/revid/mtsSender_test.go @@ -205,8 +205,8 @@ func TestSendFailDiscontinuity(t *testing.T) { mts.Meta = meta.New() // Create ringBuffer sender, loadSender and the MPEGTS encoder. rb := ring.NewBuffer(rbSize, rbElementSize, wTimeout) - const disconClipNo = 3 - tstSender := &sender{testDiscontinuities: true, discontinuityAt: disconClipNo} + const clipWithDiscontinuity = 3 + tstSender := &sender{testDiscontinuities: true, discontinuityAt: clipWithDiscontinuity} loadSender := newMtsSender(tstSender, log) packer := tstPacker{rb: rb} encoder := mts.NewEncoder(&packer, 25) @@ -246,7 +246,7 @@ func TestSendFailDiscontinuity(t *testing.T) { t.Errorf("We don't have one less clip as we should. Got: %v, want: %v\n", gotLen, expectedLen) } // Now check that the discontinuity indicator is set at the discontinuityClip PAT. - disconClip := result[disconClipNo] + disconClip := result[clipWithDiscontinuity] firstPkt := disconClip[:mts.PacketSize] var pkt [mts.PacketSize]byte copy(pkt[:], firstPkt)