Skip to content

Commit

Permalink
Merge pull request #949 from testwill/ioutil
Browse files Browse the repository at this point in the history
chore: remove refs to deprecated io/ioutil
  • Loading branch information
k8s-ci-robot authored Oct 2, 2023
2 parents 474bfa6 + 33192d7 commit ca083d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/controller/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package controller
import (
"context"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"reflect"
Expand Down Expand Up @@ -125,7 +124,7 @@ func createMockServer(t *testing.T, tmpdir string) (*gomock.Controller,
}

func tempDir(t *testing.T) string {
dir, err := ioutil.TempDir("", "external-provisioner-test-")
dir, err := os.MkdirTemp("", "external-provisioner-test-")
if err != nil {
t.Fatalf("Cannot create temporary directory: %s", err)
}
Expand Down

0 comments on commit ca083d7

Please sign in to comment.