aboutsummaryrefslogtreecommitdiff
path: root/actions/recovery_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'actions/recovery_test.go')
-rw-r--r--actions/recovery_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/actions/recovery_test.go b/actions/recovery_test.go
index 5abd0a9..35ade0e 100644
--- a/actions/recovery_test.go
+++ b/actions/recovery_test.go
@@ -19,7 +19,6 @@
package actions
import (
- "io/ioutil"
"os"
"path/filepath"
"strings"
@@ -29,7 +28,7 @@ import (
)
func TestRecoveryPassphrase(t *testing.T) {
- tempDir, err := ioutil.TempDir("", "fscrypt")
+ tempDir, err := os.MkdirTemp("", "fscrypt")
if err != nil {
t.Fatal(err)
}
@@ -71,7 +70,7 @@ func TestRecoveryPassphrase(t *testing.T) {
recoveryFile); err != nil {
t.Fatal(err)
}
- contentsBytes, err := ioutil.ReadFile(recoveryFile)
+ contentsBytes, err := os.ReadFile(recoveryFile)
if err != nil {
t.Fatal(err)
}