diff options
| author | Jakob Unterwurzacher | 2025-07-07 19:54:48 +0200 | 
|---|---|---|
| committer | Jakob Unterwurzacher | 2025-07-07 19:59:35 +0200 | 
| commit | 8f5df19b353e02ffba842fd1b15ccf93da7ee3b4 (patch) | |
| tree | 8f68b74e56a1d20af82e5093a059d180c925f9be /tests/root_test/root_test.go | |
| parent | cdb80ea9825d2e876f1cf579bf960e4da7656b4c (diff) | |
Fix a bunch of staticcheck errors
Tool-assisted.
Diffstat (limited to 'tests/root_test/root_test.go')
| -rw-r--r-- | tests/root_test/root_test.go | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/tests/root_test/root_test.go b/tests/root_test/root_test.go index 9ce1f4b..7bc3ebc 100644 --- a/tests/root_test/root_test.go +++ b/tests/root_test/root_test.go @@ -5,7 +5,6 @@  package root_test  import ( -	"io/ioutil"  	"os"  	"os/exec"  	"path/filepath" @@ -203,7 +202,7 @@ func TestDiskFull(t *testing.T) {  	}  	t.Logf("sz1=%d, sz2=%d", sz1, sz2) -	foo1, err := ioutil.ReadFile(mnt + "/foo1") +	foo1, err := os.ReadFile(mnt + "/foo1")  	if err != nil {  		t.Fatal(err)  	} @@ -211,7 +210,7 @@ func TestDiskFull(t *testing.T) {  		t.Fail()  	} -	foo2, err := ioutil.ReadFile(mnt + "/foo2") +	foo2, err := os.ReadFile(mnt + "/foo2")  	if err != nil {  		t.Fatal(err)  	} @@ -231,7 +230,7 @@ func TestAcl(t *testing.T) {  	defer test_helpers.UnmountPanic(pDir)  	f1 := pDir + "/f1" -	if err := ioutil.WriteFile(f1, []byte("hello world\n"), 000); err != nil { +	if err := os.WriteFile(f1, []byte("hello world\n"), 000); err != nil {  		t.Fatal(err)  	} | 
