remove unnecessary NewSize

pull/962/head
Darien Raymond 2018-03-11 23:45:24 +01:00
parent 34c12c1af6
commit d1898b995f
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ func TestSRTPWrite(t *testing.T) {
srtp := srtpRaw.(*SRTP)
payload := buf.NewSize(2048)
payload := buf.New()
payload.AppendSupplier(srtp.Write)
payload.Append(content)

View File

@ -18,7 +18,7 @@ func TestUTPWrite(t *testing.T) {
utp := utpRaw.(*UTP)
payload := buf.NewSize(2048)
payload := buf.New()
payload.AppendSupplier(utp.Write)
payload.Append(content)

View File

@ -17,7 +17,7 @@ func TestUTPWrite(t *testing.T) {
video := videoRaw.(*VideoChat)
payload := buf.NewSize(2048)
payload := buf.New()
payload.AppendSupplier(video.Write)
assert(payload.Len(), Equals, video.Size())