Skip to content

Commit

Permalink
build: use pkg os instead of ioutil
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Duarte Barroso <[email protected]>
  • Loading branch information
maiqueb committed Feb 8, 2023
1 parent 2dcef0d commit 21f441b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/controller/pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"path"
"testing"
Expand Down Expand Up @@ -52,7 +51,7 @@ var _ = Describe("Dynamic Attachment controller", func() {
)

var err error
cniConfigDir, err = ioutil.TempDir("", "multus-config")
cniConfigDir, err = os.MkdirTemp("", "multus-config")
Expect(err).ToNot(HaveOccurred())
Expect(os.MkdirAll(cniConfigDir, configFilePermissions)).To(Succeed())
Expect(os.WriteFile(
Expand Down

0 comments on commit 21f441b

Please sign in to comment.