mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-28 13:05:28 -05:00
refactor multibuffer
This commit is contained in:
@@ -69,8 +69,7 @@ func TestReadByte(t *testing.T) {
|
||||
t.Error("unexpected byte: ", b, " want a")
|
||||
}
|
||||
|
||||
var mb MultiBuffer
|
||||
nBytes, err := reader.WriteTo(&mb)
|
||||
nBytes, err := reader.WriteTo(DiscardBytes)
|
||||
common.Must(err)
|
||||
if nBytes != 3 {
|
||||
t.Error("unexpect bytes written: ", nBytes)
|
||||
|
||||
Reference in New Issue
Block a user