summaryrefslogtreecommitdiff
path: root/tests/cli/longnamemax_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cli/longnamemax_test.go')
-rw-r--r--tests/cli/longnamemax_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/cli/longnamemax_test.go b/tests/cli/longnamemax_test.go
index e44a84e..357ede6 100644
--- a/tests/cli/longnamemax_test.go
+++ b/tests/cli/longnamemax_test.go
@@ -2,7 +2,6 @@ package cli
import (
"fmt"
- "io/ioutil"
"os"
"path/filepath"
"strings"
@@ -38,7 +37,7 @@ func TestLongnamemax100(t *testing.T) {
for l := 1; l <= 255; l++ {
path := pDir + "/" + strings.Repeat("x", l)
- if err := ioutil.WriteFile(path, nil, 0600); err != nil {
+ if err := os.WriteFile(path, nil, 0600); err != nil {
t.Fatal(err)
}
matches, err := filepath.Glob(cDir + "/gocryptfs.longname.*")
@@ -84,7 +83,7 @@ func TestLongnamemax100Reverse(t *testing.T) {
for l := 1; l <= 255; l++ {
path := backingDir + "/" + strings.Repeat("x", l)
- if err := ioutil.WriteFile(path, nil, 0600); err != nil {
+ if err := os.WriteFile(path, nil, 0600); err != nil {
t.Fatal(err)
}
matches, err := filepath.Glob(mntDir + "/gocryptfs.longname.*")