Skip to content

Commit 0d58c35

Browse files
authored
Merge pull request #1370 from stormentt/fix-gpg-wrong-permission-test
Fix TestGnuPGHome_Validate
2 parents 4f9a034 + 165b4e6 commit 0d58c35

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pgp/keysource_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,11 @@ func TestGnuPGHome_Validate(t *testing.T) {
129129
})
130130

131131
t.Run("wrong permissions", func(t *testing.T) {
132-
// Is created with 0755
133132
tmpDir := t.TempDir()
133+
134+
err := os.Chmod(tmpDir, 0o755)
135+
assert.NoError(t, err)
136+
134137
assert.Error(t, GnuPGHome(tmpDir).Validate())
135138
})
136139

0 commit comments

Comments
 (0)