revid: unexported buf in sender within mtsSender_test.go

This commit is contained in:
Saxon 2019-03-01 11:11:20 +10:30
parent 74110dee31
commit b3f2439c5b
1 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ const (
)
type sender struct {
Buf [][]byte
buf [][]byte
tstDiscon bool
disconAt int
curPktNo int
@ -65,7 +65,7 @@ func (ts *sender) send(d []byte) error {
}
cpy := make([]byte, len(d))
copy(cpy, d)
ts.Buf = append(ts.Buf, cpy)
ts.buf = append(ts.buf, cpy)
ts.curPktNo++
return nil
}
@ -139,7 +139,7 @@ func TestSegment(t *testing.T) {
}
}
result := tstSender.Buf
result := tstSender.buf
expectData := 0
for clipNo, clip := range result {
t.Logf("Checking clip: %v\n", clipNo)
@ -227,7 +227,7 @@ func TestSendFailDiscontinuity(t *testing.T) {
}
}
result := tstSender.Buf
result := tstSender.buf
// First check that we have less clips
expectedLen := (((noOfPacketsToWrite/psiSendCount)*2 + noOfPacketsToWrite) / psiSendCount) - 1