fix(lint): golangci-lint warning.

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi.Wu
2022-12-17 22:59:18 +08:00
parent 6fa9769a31
commit fe402a578a
6 changed files with 11 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ package router
import (
"context"
"crypto/tls"
"io/ioutil"
"io"
"log"
"net/http"
"os"
@@ -84,7 +84,7 @@ func testRequest(t *testing.T, url string) {
assert.NoError(t, err)
_, ioerr := ioutil.ReadAll(resp.Body)
_, ioerr := io.ReadAll(resp.Body)
assert.NoError(t, ioerr)
assert.Equal(t, "200 OK", resp.Status, "should get a 200")
}