mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-26 03:55:26 -05:00
rewrite alloc.buffer
This commit is contained in:
@@ -42,7 +42,7 @@ func TestShadowsocksTCP(t *testing.T) {
|
||||
|
||||
//conn.CloseWrite()
|
||||
|
||||
response := alloc.NewBuffer().Clear()
|
||||
response := alloc.NewBuffer()
|
||||
finished := false
|
||||
expectedResponse := "Processed: " + payload
|
||||
for {
|
||||
@@ -56,7 +56,7 @@ func TestShadowsocksTCP(t *testing.T) {
|
||||
break
|
||||
}
|
||||
if response.Len() > len(expectedResponse) {
|
||||
fmt.Printf("Unexpected response: %v\n", response.Value)
|
||||
fmt.Printf("Unexpected response: %v\n", response.Bytes())
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user