fix test break

pull/314/head
Darien Raymond 8 years ago
parent 3ba5ab3291
commit 60697e4e4f
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

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

Loading…
Cancel
Save