summaryrefslogtreecommitdiff
path: root/src/archive/tar/writer_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/archive/tar/writer_test.go')
-rw-r--r--src/archive/tar/writer_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/archive/tar/writer_test.go b/src/archive/tar/writer_test.go
index 30556d27d0..a00f02d8fa 100644
--- a/src/archive/tar/writer_test.go
+++ b/src/archive/tar/writer_test.go
@@ -9,7 +9,6 @@ import (
"encoding/hex"
"errors"
"io"
- "io/ioutil"
"os"
"path"
"reflect"
@@ -520,7 +519,7 @@ func TestWriter(t *testing.T) {
}
if v.file != "" {
- want, err := ioutil.ReadFile(v.file)
+ want, err := os.ReadFile(v.file)
if err != nil {
t.Fatalf("ReadFile() = %v, want nil", err)
}