Skip to content

Commit

Permalink
Replace deprecated io/ioutil package (#92)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcin Franczyk <[email protected]>
  • Loading branch information
mfranczy authored Sep 5, 2023
1 parent fa92820 commit df0fbec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions e2e/create-pvc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"context"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -41,7 +40,7 @@ var _ = Describe("CreatePVC", func() {
var err error

if len(TenantKubeConfig) == 0 {
tmpDir, err = ioutil.TempDir(WorkingDir, "pvc-creation-tests")
tmpDir, err = os.MkdirTemp(WorkingDir, "pvc-creation-tests")
Expect(err).ToNot(HaveOccurred())

tenantKubeconfigFile = filepath.Join(tmpDir, "tenant-kubeconfig.yaml")
Expand Down
3 changes: 1 addition & 2 deletions sanity/sanity_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package sanity

import (
"io/ioutil"
"os"
"path/filepath"
"testing"
Expand All @@ -22,7 +21,7 @@ var (
)

var _ = ginkgo.BeforeSuite(func() {
tempDir, err = ioutil.TempDir(os.TempDir(), "csi-sanity")
tempDir, err = os.MkdirTemp(os.TempDir(), "csi-sanity")
gomega.Expect(err).ToNot(gomega.HaveOccurred())
// Test labels
infraClusterLabelsMap := map[string]string{}
Expand Down

0 comments on commit df0fbec

Please sign in to comment.