mirror of
https://github.com/TwiN/gatus.git
synced 2024-12-14 11:58:04 +00:00
chore(test): Use io instead of io/ioutil
This commit is contained in:
parent
90e9b55109
commit
5b1aeaeb0c
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ package client
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"net/http"
|
||||
"testing"
|
||||
"time"
|
||||
|
@ -180,7 +180,7 @@ func TestHttpClientProvidesOAuth2BearerToken(t *testing.T) {
|
|||
if r.Host == "token-server.local" {
|
||||
return &http.Response{
|
||||
StatusCode: http.StatusOK,
|
||||
Body: ioutil.NopCloser(bytes.NewReader(
|
||||
Body: io.NopCloser(bytes.NewReader(
|
||||
[]byte(
|
||||
`{"token_type":"Bearer","expires_in":3599,"ext_expires_in":3599,"access_token":"secret-token"}`,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue