mirror of
https://github.com/labstack/echo.git
synced 2026-06-20 01:18:42 +02:00
Replace "io/ioutil"
"io/ioutil" pakcage has been deprecated since Go 1.16.
This commit is contained in:
@@ -4,9 +4,9 @@ import (
|
||||
"bytes"
|
||||
"compress/gzip"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
@@ -173,7 +173,7 @@ func TestGzipWithStatic(t *testing.T) {
|
||||
r, err := gzip.NewReader(rec.Body)
|
||||
if assert.NoError(t, err) {
|
||||
defer r.Close()
|
||||
want, err := ioutil.ReadFile("../_fixture/images/walle.png")
|
||||
want, err := os.ReadFile("../_fixture/images/walle.png")
|
||||
if assert.NoError(t, err) {
|
||||
buf := new(bytes.Buffer)
|
||||
buf.ReadFrom(r)
|
||||
|
||||
Reference in New Issue
Block a user