We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c72998c commit 9e9f54fCopy full SHA for 9e9f54f
1 file changed
keystore/storage/file_test.go
@@ -11,8 +11,7 @@ import (
11
12
func TestFileStorage(t *testing.T) {
13
t.Parallel()
14
- dir := t.TempDir()
15
- storage := storage.NewFileStorage(filepath.Join(dir, "out.txt"))
+ storage := storage.NewFileStorage(filepath.Join(t.TempDir(), "out.txt"))
16
_, err := storage.GetEncryptedKeystore(t.Context())
17
require.ErrorContains(t, err, "no such file or directory")
18
require.NoError(t, storage.PutEncryptedKeystore(t.Context(), []byte("test")))
0 commit comments