Skip to content

Commit d700762

Browse files
committed
Remove references to io/ioutil package
io/ioutil package has been marked deprecated starting Go 1.16. Signed-off-by: Austin Vazquez <[email protected]>
1 parent 57b6981 commit d700762

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

zfs_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"context"
2424
_ "crypto/sha256"
2525
"fmt"
26-
"io/ioutil"
2726
"os"
2827
"path/filepath"
2928
"testing"
@@ -62,7 +61,7 @@ func newSnapshotter() func(context.Context, string) (snapshots.Snapshotter, func
6261
if err != nil {
6362
return nil, nil, err
6463
}
65-
testZFSMountpoint, err := ioutil.TempDir("", "containerd-zfs-test")
64+
testZFSMountpoint, err := os.MkdirTemp("", "containerd-zfs-test")
6665
if err != nil {
6766
return nil, nil, err
6867
}
@@ -103,7 +102,7 @@ func TestZFSUsage(t *testing.T) {
103102
ctx := context.Background()
104103

105104
// Create temporary directory
106-
root, err := ioutil.TempDir("", "TestZFSUsage-")
105+
root, err := os.MkdirTemp("", "TestZFSUsage-")
107106
if err != nil {
108107
t.Error(err)
109108
}

0 commit comments

Comments
 (0)