summaryrefslogtreecommitdiff
path: root/tests/example_filesystems
diff options
context:
space:
mode:
Diffstat (limited to 'tests/example_filesystems')
-rw-r--r--tests/example_filesystems/example_test_helpers.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/example_filesystems/example_test_helpers.go b/tests/example_filesystems/example_test_helpers.go
index c56d75a..34e5786 100644
--- a/tests/example_filesystems/example_test_helpers.go
+++ b/tests/example_filesystems/example_test_helpers.go
@@ -1,7 +1,6 @@
package example_filesystems
import (
- "io/ioutil"
"os"
"path/filepath"
"testing"
@@ -15,7 +14,7 @@ const statusTxtContent = "It works!\n"
func checkExampleFS(t *testing.T, dir string, rw bool) {
// Read regular file
statusFile := filepath.Join(dir, "status.txt")
- contentBytes, err := ioutil.ReadFile(statusFile)
+ contentBytes, err := os.ReadFile(statusFile)
if err != nil {
t.Error(err)
return
@@ -68,7 +67,7 @@ func checkExampleFSrw(t *testing.T, dir string, rw bool) {
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" +
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" +
"xxxxxxxxxxxxxxxxxxxxxxxx"
- contentBytes, err := ioutil.ReadFile(filepath.Join(dir, longname))
+ contentBytes, err := os.ReadFile(filepath.Join(dir, longname))
if err != nil {
t.Error(err)
return