mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-11-13 23:24:27 -05:00
remove use of small buffer in tests
This commit is contained in:
@@ -31,7 +31,7 @@ func TestSocks4AuthenticationResponseToBytes(t *testing.T) {
|
||||
|
||||
response := NewSocks4AuthenticationResponse(byte(0x10), 443, []byte{1, 2, 3, 4})
|
||||
|
||||
buffer := alloc.NewSmallBuffer().Clear()
|
||||
buffer := alloc.NewLocalBuffer(2048).Clear()
|
||||
defer buffer.Release()
|
||||
|
||||
response.Write(buffer)
|
||||
|
||||
Reference in New Issue
Block a user