Replace the deprecated ioutil methods in the test directory

This commit is contained in:
HirazawaUi
2023-04-18 21:51:10 +08:00
parent f33c4a1c79
commit a8b808ee6c
3 changed files with 3 additions and 6 deletions

View File

@@ -20,7 +20,6 @@ import (
"encoding/json"
"errors"
"io"
"io/ioutil"
"net/http"
"os"
"time"
@@ -46,7 +45,7 @@ func getCredentials(tokenEndpoint string, r io.Reader, w io.Writer) error {
tokenEndpoint: tokenEndpoint,
}
data, err := ioutil.ReadAll(r)
data, err := io.ReadAll(r)
if err != nil {
return err
}