1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00

explicitly set permissions on test tmpdir

Signed-off-by: Tanner Storment <tannerstorment@gmail.com>
This commit is contained in:
Tanner Storment
2023-12-09 10:51:48 -06:00
parent 4f9a034133
commit 165b4e63c3

View File

@@ -129,8 +129,11 @@ func TestGnuPGHome_Validate(t *testing.T) {
})
t.Run("wrong permissions", func(t *testing.T) {
// Is created with 0755
tmpDir := t.TempDir()
err := os.Chmod(tmpDir, 0o755)
assert.NoError(t, err)
assert.Error(t, GnuPGHome(tmpDir).Validate())
})