Explorar el Código

fix test break

Darien Raymond hace 9 años
padre
commit
60697e4e4f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      transport/internet/authenticators/http/http_test.go

+ 1 - 1
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'})