revid: in TestSendFailDiscontinuity disconClipNo const => clipWithDiscontinuity

This commit is contained in:
Saxon 2019-03-01 13:35:22 +10:30
parent 88eac4900d
commit 7070c4e434
1 changed files with 3 additions and 3 deletions

View File

@ -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)