diff --git a/transport/internet/authenticators/http/http_test.go b/transport/internet/authenticators/http/http_test.go index 89d0f311..ea077b0f 100644 --- a/transport/internet/authenticators/http/http_test.go +++ b/transport/internet/authenticators/http/http_test.go @@ -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'})