aboutsummaryrefslogtreecommitdiff
path: root/tests/cli/xchacha_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2025-07-07 19:54:48 +0200
committerJakob Unterwurzacher2025-07-07 19:59:35 +0200
commit8f5df19b353e02ffba842fd1b15ccf93da7ee3b4 (patch)
tree8f68b74e56a1d20af82e5093a059d180c925f9be /tests/cli/xchacha_test.go
parentcdb80ea9825d2e876f1cf579bf960e4da7656b4c (diff)
Fix a bunch of staticcheck errors
Tool-assisted.
Diffstat (limited to 'tests/cli/xchacha_test.go')
-rw-r--r--tests/cli/xchacha_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/cli/xchacha_test.go b/tests/cli/xchacha_test.go
index 7f24c8b..f0fe163 100644
--- a/tests/cli/xchacha_test.go
+++ b/tests/cli/xchacha_test.go
@@ -2,7 +2,6 @@ package cli
import (
"fmt"
- "io/ioutil"
"os"
"syscall"
"testing"
@@ -40,7 +39,7 @@ func TestXchacha(t *testing.T) {
test_helpers.MountOrExit(cDir, pDir, "-extpass", "echo test")
defer test_helpers.UnmountPanic(pDir)
- if err := ioutil.WriteFile(pDir+"/1byte", []byte("x"), 0700); err != nil {
+ if err := os.WriteFile(pDir+"/1byte", []byte("x"), 0700); err != nil {
t.Fatal(err)
}
var st syscall.Stat_t
@@ -53,7 +52,7 @@ func TestXchacha(t *testing.T) {
}
// 1 MiB = 256 4kiB blocks
- if err := ioutil.WriteFile(pDir+"/1MiB", make([]byte, 1024*1024), 0700); err != nil {
+ if err := os.WriteFile(pDir+"/1MiB", make([]byte, 1024*1024), 0700); err != nil {
t.Fatal(err)
}
if err := syscall.Stat(cDir+"/1MiB", &st); err != nil {