Skip to content

Commit

Permalink
Merge pull request #112674 from iutx/optimize/oidc-test
Browse files Browse the repository at this point in the history
Optimize authenticator oidc test
  • Loading branch information
k8s-ci-robot authored Sep 25, 2022
2 parents 953ce22 c21d33a commit cac5388
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 25,9 @@ import (
"encoding/json"
"encoding/pem"
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"os"
"reflect"
"strings"
"testing"
Expand Down Expand Up @@ -76,7 76,7 @@ func loadECDSAPrivKey(t *testing.T, filepath string, alg jose.SignatureAlgorithm
}

func loadKey(t *testing.T, filepath string, alg jose.SignatureAlgorithm, unmarshal func([]byte) (interface{}, error)) *jose.JSONWebKey {
data, err := ioutil.ReadFile(filepath)
data, err := os.ReadFile(filepath)
if err != nil {
t.Fatalf("load file: %v", err)
}
Expand Down

0 comments on commit cac5388

Please sign in to comment.