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:
parent
34c12c1af6
commit
d1898b995f
@ -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…
Reference in New Issue
Block a user