Skip to content

Commit

Permalink
selfsign: replace uses of deprecated io/ioutil
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Nov 20, 2022
1 parent f98ae4a commit f277884
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions selfsign/selfsign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package selfsign
import (
"crypto/x509"
"encoding/pem"
"io/ioutil"
"net"
"net/url"
"os"
"reflect"
"testing"
"time"
Expand All @@ -22,11 +22,11 @@ const (
)

func TestDefaultSign(t *testing.T) {
csrBytes, err := ioutil.ReadFile(csrFile)
csrBytes, err := os.ReadFile(csrFile)
if err != nil {
t.Fatal(err)
}
keyBytes, err := ioutil.ReadFile(keyFile)
keyBytes, err := os.ReadFile(keyFile)
if err != nil {
t.Fatal(err)
}
Expand All @@ -47,11 +47,11 @@ func TestDefaultSign(t *testing.T) {

func TestSANs(t *testing.T) {
t.Skip("broken relating to https://github.com/cloudflare/cfssl/issues/1230")
csrBytes, err := ioutil.ReadFile(csr2File)
csrBytes, err := os.ReadFile(csr2File)
if err != nil {
t.Fatal(err)
}
keyBytes, err := ioutil.ReadFile(keyFile)
keyBytes, err := os.ReadFile(keyFile)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit f277884

Please sign in to comment.