1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

remove unnecessary NewSize

This commit is contained in:
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())