Skip to content

Commit

Permalink
Merge pull request #65 from austinvazquez/remove-ioutil
Browse files Browse the repository at this point in the history
Remove references to io/ioutil package
  • Loading branch information
mxpv authored Oct 29, 2022
2 parents 57b6981 + d700762 commit a9ecfd7
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 a9ecfd7

Please sign in to comment.