diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-08-05 10:26:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 10:26:59 +0100 |
commit | c8935fb53f122b367eda61ec7811c406193d29ba (patch) | |
tree | 928c78461943f180dde6b2b4e4cd1d26792248f1 /test | |
parent | 1b7f84250a46b401eccb89acafdef1b379f2dbc0 (diff) |
Do not use `ioutil` as it is deprecated (#2625)
Diffstat (limited to 'test')
-rw-r--r-- | test/keys.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/keys.go b/test/keys.go index 75e3800e..327c6ed7 100644 --- a/test/keys.go +++ b/test/keys.go @@ -22,7 +22,6 @@ import ( "encoding/pem" "errors" "fmt" - "io/ioutil" "math/big" "os" "strings" @@ -144,7 +143,7 @@ func NewTLSKeyWithAuthority(serverName, tlsKeyPath, tlsCertPath, authorityKeyPat } // load the authority key - dat, err := ioutil.ReadFile(authorityKeyPath) + dat, err := os.ReadFile(authorityKeyPath) if err != nil { return err } @@ -158,7 +157,7 @@ func NewTLSKeyWithAuthority(serverName, tlsKeyPath, tlsCertPath, authorityKeyPat } // load the authority certificate - dat, err = ioutil.ReadFile(authorityCertPath) + dat, err = os.ReadFile(authorityCertPath) if err != nil { return err } |