summaryrefslogtreecommitdiff
path: root/tests/root_test/issue893_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/root_test/issue893_test.go
parentcdb80ea9825d2e876f1cf579bf960e4da7656b4c (diff)
Fix a bunch of staticcheck errors
Tool-assisted.
Diffstat (limited to 'tests/root_test/issue893_test.go')
-rw-r--r--tests/root_test/issue893_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/root_test/issue893_test.go b/tests/root_test/issue893_test.go
index 6ad8e6d..2db0b19 100644
--- a/tests/root_test/issue893_test.go
+++ b/tests/root_test/issue893_test.go
@@ -4,7 +4,6 @@ package root_test
import (
"fmt"
- "io/ioutil"
"os"
"sync"
"syscall"
@@ -35,10 +34,10 @@ func TestConcurrentUserOps(t *testing.T) {
if err = os.MkdirAll(d, 0700); err != nil {
return
}
- if err = ioutil.WriteFile(d+"/foo", nil, 0400); err != nil {
+ if err = os.WriteFile(d+"/foo", nil, 0400); err != nil {
return
}
- if err = ioutil.WriteFile(d+"/bar", []byte("aaaaaaaaaaaaaaaaaaaaa"), 0400); err != nil {
+ if err = os.WriteFile(d+"/bar", []byte("aaaaaaaaaaaaaaaaaaaaa"), 0400); err != nil {
return
}
if err = syscall.Unlink(d + "/foo"); err != nil {