Skip to content

Commit

Permalink
msrv: remove deprecated ioutil from tests
Browse files Browse the repository at this point in the history
removing deprecated ioutil from tests and adding commit body to pass linter

Signed-off-by: Pavel Abramov <[email protected]>
  • Loading branch information
uncleDecart committed Nov 8, 2024
1 parent 7f13a46 commit 162ea2c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/pillar/cmd/msrv/msrv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package msrv_test
import (
"bytes"
"encoding/json"
"io/ioutil"
"net"
"net/http"
"net/http/httptest"
Expand Down Expand Up @@ -107,7 +106,7 @@ func TestPostKubeconfig(t *testing.T) {
Logger: logger,
}

dir, err := ioutil.TempDir("/tmp", "msrv_test")
dir, err := os.MkdirTemp("/tmp", "msrv_test")
g.Expect(err).ToNot(gomega.HaveOccurred())
defer os.RemoveAll(dir)

Expand Down Expand Up @@ -217,7 +216,7 @@ func TestRequestPatchEnvelopes(t *testing.T) {
Logger: logger,
}

dir, err := ioutil.TempDir("/tmp", "msrv_test")
dir, err := os.MkdirTemp("/tmp", "msrv_test")
g.Expect(err).ToNot(gomega.HaveOccurred())
defer os.RemoveAll(dir)

Expand Down Expand Up @@ -371,7 +370,7 @@ func TestHandleAppInstanceDiscovery(t *testing.T) {
Logger: logger,
}

dir, err := ioutil.TempDir("/tmp", "msrv_test")
dir, err := os.MkdirTemp("/tmp", "msrv_test")
g.Expect(err).ToNot(gomega.HaveOccurred())
defer os.RemoveAll(dir)

Expand Down

0 comments on commit 162ea2c

Please sign in to comment.