remove unnecessary NewSize

pull/962/head
Darien Raymond 7 years ago
parent 34c12c1af6
commit d1898b995f
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

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

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

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

Loading…
Cancel
Save