Skip to content

Commit

Permalink
Remove references to io/ioutil package
Browse files Browse the repository at this point in the history
io/ioutil package has been marked deprecated starting Go 1.16.

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
  • Loading branch information
austinvazquez committed Oct 25, 2022
1 parent 57b6981 commit d700762
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zfs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"context"
_ "crypto/sha256"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"testing"
Expand Down Expand Up @@ -62,7 +61,7 @@ func newSnapshotter() func(context.Context, string) (snapshots.Snapshotter, func
if err != nil {
return nil, nil, err
}
testZFSMountpoint, err := ioutil.TempDir("", "containerd-zfs-test")
testZFSMountpoint, err := os.MkdirTemp("", "containerd-zfs-test")
if err != nil {
return nil, nil, err
}
Expand Down Expand Up @@ -103,7 +102,7 @@ func TestZFSUsage(t *testing.T) {
ctx := context.Background()

// Create temporary directory
root, err := ioutil.TempDir("", "TestZFSUsage-")
root, err := os.MkdirTemp("", "TestZFSUsage-")
if err != nil {
t.Error(err)
}
Expand Down

0 comments on commit d700762

Please sign in to comment.