From 5b1aeaeb0cfaa96ad1b352e2e1efba995be1fb92 Mon Sep 17 00:00:00 2001 From: TwiN Date: Mon, 16 May 2022 22:19:42 -0400 Subject: [PATCH] chore(test): Use io instead of io/ioutil --- client/client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client_test.go b/client/client_test.go index 7e8dc311..c713a399 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -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"}`, ),