Skip to content

Commit

Permalink
cleanup: remove ioutil for new go version (#9427)
Browse files Browse the repository at this point in the history
Signed-off-by: xin.li <[email protected]>

Signed-off-by: xin.li <[email protected]>
  • Loading branch information
my-git9 authored Dec 20, 2022
1 parent 87146d6 commit 787ea74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/kube-webhook-certgen/rootfs/pkg/certs/certs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"crypto/tls"
"crypto/x509"
"fmt"
"io/ioutil"
"io"
"net/http"
"net/http/httptest"
"testing"
Expand Down Expand Up @@ -49,7 +49,7 @@ func TestCertificateCreation(t *testing.T) {
t.Errorf("Response code was %v; want 200", res.StatusCode)
}

body, err := ioutil.ReadAll(res.Body)
body, err := io.ReadAll(res.Body)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 787ea74

Please sign in to comment.