Skip to content

Commit

Permalink
crl: 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 77a52e7 commit 31652f3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crl/crl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package crl

import (
"crypto/x509"
"io/ioutil"
"os"
"testing"
)

Expand All @@ -16,17 +16,17 @@ const (

func TestNewCRLFromFile(t *testing.T) {

tryTwoKeyBytes, err := ioutil.ReadFile(tryTwoKey)
tryTwoKeyBytes, err := os.ReadFile(tryTwoKey)
if err != nil {
t.Fatal(err)
}

tryTwoCertBytes, err := ioutil.ReadFile(tryTwoCert)
tryTwoCertBytes, err := os.ReadFile(tryTwoCert)
if err != nil {
t.Fatal(err)
}

serialListBytes, err := ioutil.ReadFile(serialList)
serialListBytes, err := os.ReadFile(serialList)
if err != nil {
t.Fatal(err)
}
Expand All @@ -49,12 +49,12 @@ func TestNewCRLFromFile(t *testing.T) {
}

func TestNewCRLFromFileWithoutRevocations(t *testing.T) {
tryTwoKeyBytes, err := ioutil.ReadFile(tryTwoKey)
tryTwoKeyBytes, err := os.ReadFile(tryTwoKey)
if err != nil {
t.Fatal(err)
}

tryTwoCertBytes, err := ioutil.ReadFile(tryTwoCert)
tryTwoCertBytes, err := os.ReadFile(tryTwoCert)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 31652f3

Please sign in to comment.