chore(test): Use io instead of io/ioutil

This commit is contained in:
TwiN 2022-05-16 22:19:42 -04:00
parent 90e9b55109
commit 5b1aeaeb0c

View File

@ -2,7 +2,7 @@ package client
import ( import (
"bytes" "bytes"
"io/ioutil" "io"
"net/http" "net/http"
"testing" "testing"
"time" "time"
@ -180,7 +180,7 @@ func TestHttpClientProvidesOAuth2BearerToken(t *testing.T) {
if r.Host == "token-server.local" { if r.Host == "token-server.local" {
return &http.Response{ return &http.Response{
StatusCode: http.StatusOK, StatusCode: http.StatusOK,
Body: ioutil.NopCloser(bytes.NewReader( Body: io.NopCloser(bytes.NewReader(
[]byte( []byte(
`{"token_type":"Bearer","expires_in":3599,"ext_expires_in":3599,"access_token":"secret-token"}`, `{"token_type":"Bearer","expires_in":3599,"ext_expires_in":3599,"access_token":"secret-token"}`,
), ),