Skip to content

Commit

Permalink
Merge pull request #1370 from stormentt/fix-gpg-wrong-permission-test
Browse files Browse the repository at this point in the history
Fix TestGnuPGHome_Validate
  • Loading branch information
felixfontein authored Dec 10, 2023
2 parents 4f9a034 + 165b4e6 commit 0d58c35
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pgp/keysource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
})

Expand Down

0 comments on commit 0d58c35

Please sign in to comment.