1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-29 18:45:23 +00:00

fix test break

This commit is contained in:
Darien Raymond 2016-12-02 15:10:48 +01:00
parent 3ba5ab3291
commit 60697e4e4f
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -11,7 +11,7 @@ import (
func TestReaderWriter(t *testing.T) {
assert := assert.On(t)
cache := alloc.NewBuffer()
cache := alloc.NewBuffer().Clear()
writer := NewHeaderWriter(alloc.NewLocalBuffer(256).Clear().AppendString("abcd" + ENDING))
writer.Write(cache)
cache.Write([]byte{'e', 'f', 'g'})