mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
Update io_test.go
This commit is contained in:
parent
2f47074c98
commit
a2d8d55ba1
@ -32,6 +32,7 @@ func TestSingleIO(t *testing.T) {
|
||||
|
||||
writer := NewAuthChunkWriter(v2io.NewAdaptiveWriter(content))
|
||||
writer.Write(alloc.NewBuffer().Clear().AppendString("abcd"))
|
||||
writer.Write(alloc.NewBuffer().Clear())
|
||||
writer.Release()
|
||||
|
||||
reader := NewAuthChunkReader(content)
|
||||
@ -90,6 +91,7 @@ func TestLargeIO(t *testing.T) {
|
||||
break
|
||||
}
|
||||
}
|
||||
writer.Write(alloc.NewBuffer().Clear())
|
||||
writer.Release()
|
||||
|
||||
actualContent := make([]byte, 0, len(content))
|
||||
|
Loading…
Reference in New Issue
Block a user