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:
@@ -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())
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user