1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-03 00:56:59 +02:00

Bit of more cleanup

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2018-02-21 11:38:22 -08:00
parent f49d166e6f
commit 4f3080c197
5 changed files with 8 additions and 9 deletions

View File

@ -93,7 +93,7 @@ func TestGzipWithStatic(t *testing.T) {
defer r.Close()
want, err := ioutil.ReadFile("../_fixture/images/walle.png")
if assert.NoError(t, err) {
var buf bytes.Buffer
buf := new(bytes.Buffer)
buf.ReadFrom(r)
assert.Equal(t, want, buf.Bytes())
}